Commit Graph

92 Commits

Author SHA1 Message Date
Pale Moon 7f53aebc16 Align for(let x=n ; ; ) loops with the finalized ES6 spec.
This resolves #1432.
2018-07-25 09:26:37 +08:00
Pale Moon dbeb71fc23 Fix a potential reference issue in JS arrays.
Found with SA.
2018-07-25 09:13:46 +08:00
JustOff 68cb4d2a63 Correct code style 2018-07-25 09:07:50 +08:00
JustOff 4c69e42ca5 Move attrs definition out of loop 2018-07-25 09:07:43 +08:00
JustOff f4221f241a Fix Object.values / Object.entries self-hosted implementation 2018-07-25 09:07:36 +08:00
janekptacijarabaci 3f9e31cd60 JS - DOM - implement Object.values / Object.entries 2018-07-25 08:08:56 +08:00
Pale Moon 9eff8e7274 Fix decompilation of JSOP_REGEXP and JSOP_NEWARRAY_COPYONWRITE. 2018-07-25 08:08:12 +08:00
Pale Moon 43d943dd3e Set the hasFreezeConstraints flag only if adding constraints succeeded. 2018-07-25 08:06:58 +08:00
janekptacijarabaci 5cddd335a8 [minor fix] Build - warn - the inline specifier cannot be used when a friend declaration refers to a specialization of a function template 2018-07-25 08:05:30 +08:00
janekptacijarabaci 3fc0748c91 JS - OOM (code clean up) - follow up 2018-07-25 08:02:16 +08:00
janekptacijarabaci 3126408cc5 JS - ES6 iterator (style clean up + tests) 2018-07-25 08:02:09 +08:00
janekptacijarabaci f2b89d294c JS - OOM (code clean up) - fix typo 2018-07-25 08:02:02 +08:00
janekptacijarabaci 11a8b3079a JS - OOM (code clean up) 2018-07-25 08:01:54 +08:00
janekptacijarabaci 9bbdf3ddab JS - ES6 iterator 2018-07-25 08:01:46 +08:00
janekptacijarabaci 86ffdb3c50 JS - Date - parse - new Date(<mm/dd/yy>) behaves differently in some browsers 2018-07-25 07:31:17 +08:00
janekptacijarabaci 671b416855 window.onerror catches JSON.parse error in Promise fulfillment 2018-07-25 07:15:21 +08:00
janekptacijarabaci 500bbf02e9 Make creation of an Error not capture a filename/lineno it shouldn't have access to; A potential crash 2018-07-25 07:15:18 +08:00
Pale Moon cd5502cc24 Make JS::IsIncrementalBarrierNeeded return true while sweeping incrementally. 2018-07-25 07:10:48 +08:00
JustOff 5afa3e8e72 Align check of [[avilableLocales]] with ucol_getAvailable() from ICU55+ 2018-07-25 07:00:02 +08:00
Pale Moon a36be1efb4 Re-land "Be more careful about optimizing sorted arrays".
Avoids the issue in #966.
Verified not crashing Pentadactyl.
2018-07-25 06:58:22 +08:00
Pale Moon 034fc6a4c9 Revert "Be more careful about optimizing sorted arrays."
This reverts commit a8a31880a42f5283f30c6f670ce7da8940fe43a3.
This resolves #966
2018-07-25 06:58:19 +08:00
Pale Moon 0703663894 Be more careful about optimizing sorted arrays. 2018-07-25 06:57:21 +08:00
Pale Moon f4f34a6b4a Fix a rare occurrence when finding zone groups fails due to over-recursion. 2018-07-25 06:56:23 +08:00
Pale Moon 4c96d75f67 Fix assertion in IsOwnedByOtherRuntime()
This resolves #883.
2018-07-25 06:45:01 +08:00
rhinoduck 5a3cd0bca0 Fix line endings 2018-07-25 06:44:41 +08:00
Pale Moon a94a6e6e21 Check if we actually have a script in IonBuilder::createThisScriptedSingleton. 2018-07-25 06:44:09 +08:00
Pale Moon 3456c5c8c4 Trigger a read barrier when creating new reference to a compartment's lazy functions. 2018-07-25 06:44:05 +08:00
Pale Moon 1f3cdc1ece Check arguments length in ICCallStubCompiler::guardFunApply. 2018-07-25 06:44:01 +08:00
Pale Moon ad1520255e Bug 1325344. 2018-07-25 06:43:59 +08:00
Pale Moon 659bedc056 Bug 1285960. 2018-07-25 06:43:57 +08:00
Pale Moon 059c32131f Don't mark GC things owned by another runtime. 2018-07-25 06:43:46 +08:00
Pale Moon c6e9ca2280 Unify window handling across ICs. 2018-07-25 06:43:40 +08:00
Pale Moon 59f88ee9ff Adjust ar-MA i18n test to expect 24-hour format. 2018-07-25 06:42:08 +08:00
Pale Moon 4e750b7e64 Update generated unicode data for js input test 2018-07-25 06:42:07 +08:00
Pale Moon 18e2173c3d Fix CallArgs usage.
This resolves #667.
2018-07-25 06:35:32 +08:00
Pale Moon 39a21cca31 Make the let keyword versionless.
Tag #773.
2018-07-25 06:34:56 +08:00
Pale Moon 27710e276e Remove support for let (x=y) { } blocks.
Tag #773.
2018-07-25 06:34:55 +08:00
Pale Moon dca4339883 Remove let blocks in js tests 2018-07-25 06:34:53 +08:00
Pale Moon 69fd1c8ebe Remove support for non-standard let expressions, part 3: Fix parser code issue.
Tag #773.
2018-07-25 06:28:12 +08:00
Pale Moon 476d379097 Remove support for non-standard let expressions, part 2: tests.
Tag #773.
2018-07-25 06:27:39 +08:00
Pale Moon 563619e5f0 Remove support for non-standard let expressions, part 1: code.
Tag #773.
2018-07-25 06:27:04 +08:00
Pale Moon 08e58e7fbb Remove Windows Metro/WinRT code. 2018-07-25 06:25:01 +08:00
Pale Moon 27a854068d Fix a typo in vm/TypeInference.cpp
Fixes missed optimization opportunities in type inference.
2018-07-25 06:24:19 +08:00
Terrence Cole 05176b64f7 Expose wrappees that may be used through a wrapper. 2018-07-25 06:22:28 +08:00
Pale Moon bcbd575341 Improve cross-compartment wrapper handling when managing tabs.
Re-implementation of [3eecec5].
This resolves #753.
2018-07-25 06:21:34 +08:00
Jan de Mooij 0f098e8f95 Don't Ion-compile scripts with too many typesets. 2018-07-25 01:29:39 +08:00
Jon Coppeard 19f99ea7e2 Ensure off-thread parse task's script is rooted correctly. 2018-07-25 01:29:37 +08:00
Steve Fink fededbf905 Fix faulty assertion involving user-defined structured clone tags.
This previously asserted that the entry after the transfer map, if nonempty, contained a tag less than SCTAG_TRANSFER_MAP_HEADER, as that is where all of the standard tags live.
However, user-defined tags start *above* the transfer map entries, so if the first object serialized was a user-defined object (eg a Blob), the assertion would fail.
2018-07-25 01:29:27 +08:00
Pale Moon c97017cd57 Bug 1299519. 2018-07-25 01:29:15 +08:00
Pale Moon 4ca478deaf Fix incorrect variable re-use (nested scope). 2018-07-25 01:21:09 +08:00