Commit graph

115 commits

Author SHA1 Message Date
janekptacijarabaci
09ace5ee98 Add TI for error properties assigned by the initial shape (follow up) 2019-02-15 23:38:28 +08:00
janekptacijarabaci
d3df9b7b8b Bug 1320198: Land additional Error prototype test 2019-02-15 23:38:26 +08:00
janekptacijarabaci
b31e40926e Bug 1319952: Assertion failure: isNurseryAllocAllowed(), at js/src/gc/Allocator.cpp:79 2019-02-15 23:38:25 +08:00
janekptacijarabaci
74e5882176 Tests 2019-02-15 23:38:23 +08:00
janekptacijarabaci
38fabf8122 Add TI for error properties assigned by the initial shape 2019-02-15 23:38:22 +08:00
janekptacijarabaci
dd09fc2495 Simplify Error Xray code 2019-02-15 23:38:20 +08:00
janekptacijarabaci
4fad420bb8 Handle the now ordinary error prototype object in stack 2019-02-15 23:38:19 +08:00
janekptacijarabaci
105cbadae7 Use ordinary objects for Error prototypes 2019-02-15 23:38:17 +08:00
janekptacijarabaci
231685e644 Remove strict arguments poison pill for "caller" property per ES2017 2019-02-15 23:38:14 +08:00
janekptacijarabaci
04e171e0a4 Correctly tokenize valid JS names when using Unicode mathematical alphanumeric symbols as variable name
Issue https://github.com/MoonchildProductions/Pale-Moon/issues/1647
2019-02-15 23:38:13 +08:00
janekptacijarabaci
0e7a16c088 Bug 755821: Function() should use the parser's argument parsing code 2019-02-15 23:38:10 +08:00
janekptacijarabaci
e7fdd26fde Bug 1318017: Call GetPrototypeFromConstructor for generator/async function and Intl constructors
[Depends on] Bug 755821: Function() should use the parser's argument
parsing code
2019-02-15 23:38:09 +08:00
wolfbeast
04caaa6539 Handle same-compartment wrappers in TypedArray methods.
CallTypedArrayMethodIfWrapped (and the CallNonGeneric machinery throughout the
engine) unwraps the `this` argument, but the other arguments are only rewrapped
for the target compartment.

The pattern being used before this patch to get the length of a TypedArray or
possible TypedArray wrapper is:
`callFunction(CallTypedArrayMethodIfWrapped, O, O, "TypedArrayLength")`
The first `O` is the `this` value and the second is an argument. If `O` is a
cross-compartment wrapper, this works fine. The first `O` is unwrapped, revealing
the actual TypedArray object; the second `O` is rewrapped for that TypedArray's
compartment, producing the same TypedArray.
However, if `O` is a same-compartment wrapper, this doesn't work. The first `O` is
unwrapped, revealing the actual TypedArray object in the same compartment;
rewrapping the other `O` does nothing to it, since it is already an object in the
target compartment. Thus TypedArrayLength receives a `this` value that's an
unwrapped TypedArray, but an argument that is still a wrapper.

The fix is to have CallTypedArrayMethodIfWrapped targets only expect `this`
to be an unwrapped TypedArray.
2019-02-15 23:37:58 +08:00
janekptacijarabaci
4cb956bb3b Close iterator after error in Promise.{all,race}
Issue #17
2019-02-15 23:37:49 +08:00
janekptacijarabaci
93ffbd46a9 Close iterator after error in Array.from
Issue #17
2019-02-15 23:37:47 +08:00
janekptacijarabaci
a32ecd025a Close iterator after error in {Map,Set,WeakMap,WeakSet} constructors
Issue #17
2019-02-15 23:37:46 +08:00
NTD
3271333633 Fix mozbuild looking for .cargo 2019-02-15 23:37:44 +08:00
Steve Fink
1baa793518 Bug 1434384 - Mark v1 structured clone data as cross-process. r=jorendorff, a=RyanVM
--HG--
extra : source : d85679eb427513cb18650f3d4e7d37a6ccbefbab
extra : intermediate-source : 5c286cc709dfcaca7269b88516e6f71626c98496
2019-02-15 23:37:36 +08:00
Jan de Mooij
514c90e37c Bug 1437450 - Disable Ion no-clone optimization for regexps if the graph contains try blocks. r=nbp, a=RyanVM
--HG--
extra : source : 61b461277369e0cec89c79d8526a82c575818e94
extra : intermediate-source : 806696d494300c8c09ad2c0c3141194b5418a706
extra : histedit_source : e38bbe5c22bace744f6da0b8ff39462b64fe5a95
2019-02-15 23:37:30 +08:00
Tom Ritter
c66f2e1613 Bug 1430173 - Reduce the precision of all explicit clocks to 2ms. r=baku, a=RyanVM
Backport to ESR where we don't have the ResistFingerprinting component.

MozReview-Commit-ID: 9bjycHjR3SF

--HG--
extra : transplant_source : %EA%03%21%0A%E9%3F%8E%CD%7C%D79f%96%85%96%00%5D%7F%95X
2019-02-15 23:37:19 +08:00
Brian Hackett
95d507d246 Bug 1437507 - Fix JSObject::setFlags to call ensureShape before checking for dictionary mode. r=jandem, a=RyanVM
--HG--
extra : source : ca6b74831ec3db204e024b07f200b0d1ce93557e
extra : intermediate-source : 9d7c295d9570e294851908465f56ec0779547d2a
2019-02-15 23:37:14 +08:00
André Bargull
1367ec69cb Bug 1430761 - Update tzdata in ICU data files to 2018c. r=Waldo, a=lizzard
--HG--
extra : rebase_source : cb9ac8a678b6f565091f6d7733b6cd86afde0da7
2019-02-15 23:36:56 +08:00
janekptacijarabaci
54566f2d9f JS - RegExp - match updated spec for /\b/iu and /\B/iu 2019-02-15 23:36:30 +08:00
wolfbeast
d76fed679b Generate irregexp character tables with make_unicode.py. 2019-02-15 23:36:29 +08:00
wolfbeast
b598dce28b Revert "JS - RegExp - match updated spec for /\b/iu and /\B/iu"
This reverts commit 93f8e06bb8d8656e868679d584c7c8771ff8e42f.
2019-02-15 23:36:27 +08:00
janekptacijarabaci
5149d56104 JS - Object - "TypeError: setting a property that has only a getter" without mentioning file and property name 2019-02-15 23:36:24 +08:00
janekptacijarabaci
91e5a3a71e JS - RegExp - match updated spec for /\b/iu and /\B/iu 2019-02-15 23:36:18 +08:00
trav90
e795fe8c1b Disable strict-aliasing for GCC in js/src/jsapi-tests
Compiling our tree with strict-aliasing is not supported.
2019-02-15 23:35:55 +08:00
trav90
12bd9bbfe4 Disable -Wimplicit-fallthrough when building jsdtoa.cpp
GCC 7 supports the clang option -Wimplicit-fallthrough.
2019-02-15 23:35:44 +08:00
trav90
bea8786496 Disable strict-aliasing for GCC in js/src/gdb
Compiling our tree with strict-aliasing is not supported.
2019-02-15 23:35:43 +08:00
trav90
be0c996191 Disable strict-aliasing for GCC in js/src
Compiling our tree with strict-aliasing is not supported.
2019-02-15 23:35:41 +08:00
NTD
b4c6885d32 Remove MOZ_MULET 2019-02-15 23:34:18 +08:00
wolfbeast
ad659f4f28 Limit the number of SharedArrayBuffers in normal JS code (not just asm.js). 2019-02-15 23:30:51 +08:00
wolfbeast
537415eeb7 Make XDR decoding more robust. 2019-02-15 23:30:48 +08:00
wolfbeast
99a0478445 WASM: Separate out ToTableIndex() 2019-02-15 23:30:47 +08:00
wolfbeast
1c690025d9 Remove unnecessary InvalidateCompilerOutputsForScript call. 2019-02-15 23:30:42 +08:00
wolfbeast
acf9f2c39c Don't allow proxies in the proto chain. 2019-02-15 23:30:26 +08:00
wolfbeast
2029eff3f1 Re-enable asm.js caching 2019-02-15 23:30:23 +08:00
wolfbeast
567399f367 Stop bypassing the Xray layer when walking the prototype chain. 2019-02-15 23:30:16 +08:00
wolfbeast
c9717cf3d1 Add rematerialized frames to the table on JitActivation after rematerialization succeeds. 2019-02-15 23:30:07 +08:00
wolfbeast
d0a1bf03fb WASM: Set OOM failure flag on alloc failure when context is available. 2019-02-15 23:30:02 +08:00
wolfbeast
ea1e157289 Add pluralrules to JS Intl 2019-02-15 23:29:58 +08:00
wolfbeast
54cfba5b8f Always initialize nursery data structures even if size is smaller than one chunk. 2019-02-15 23:29:41 +08:00
wolfbeast
9a1685a422 Move FUZZING definition from toolkit to js. 2019-02-15 23:29:39 +08:00
wolfbeast
27bb9f94c3 Split double MoveOperands that conflict with floats. 2019-02-15 23:29:34 +08:00
wolfbeast
93578c788f Remove unused compileBarriers() 2019-02-14 14:38:16 +08:00
wolfbeast
f8ab99eba0 Remove SetGCZeal() stub and its callers. 2019-02-14 14:38:14 +08:00
wolfbeast
ed9ef4d079 Remove runDebugGC() stub 2019-02-14 14:38:13 +08:00
wolfbeast
7e54c3428c Remove pushZealSelectedObjects() and caller 2019-02-14 14:38:11 +08:00
wolfbeast
55743711cc Remove finishMarkingValidation and caller 2019-02-14 14:38:10 +08:00