Commit Graph

77 Commits

Author SHA1 Message Date
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
NTD 8d98d497b3 Enable {Array, %TypedArray%}.prototype.includes 2018-07-25 01:21:05 +08:00
NTD d7ea3b8080 Sync js configure with topsrcdir 2018-07-25 01:07:58 +08:00
Pale Moon a791c5d1c3 Default the libffi configure to -O2 instead of -O3 2018-07-25 01:05:20 +08:00
Pale Moon 8dd2c4111c Improve the js jit getter cache. 2018-07-25 01:04:57 +08:00
Pale Moon 73a54610ab Fix structured cloning. 2018-07-25 01:04:49 +08:00
Pale Moon 62cbc3f0c6 Part 1: Revert Bug 1125784 2018-07-25 01:03:30 +08:00
Gpower2 d8cdbde6ce Change WIN_VER and _WIN32_WINNT to 0x0600 2018-07-25 01:02:27 +08:00
Moonchild 2ef20e45fe Revert "Change WINVER and _WIN32_WINNT to 0x0600 where applicable for issue #515" 2018-07-25 01:02:18 +08:00
Gpower2 a06562e691 Change WIN_VER and _WIN32_WINNT to 0x0600 2018-07-25 00:58:05 +08:00
Pale Moon 5c82426d94 Add ES6 extended (braced) unicode literals.
This adds support for the form \u{xxxxxx}
2018-07-25 00:56:17 +08:00
adisib 3a303e67f6 replace calls to String.prototype.contains with String.prototype.includes 2018-07-24 23:36:07 +08:00
wolfbeast 98a2a7364b Change String.prototype.contains to String.prototype.includes
Because TC39 decided it was a good idea to change this right before it became a standard.
.contains is kept for compatibility because MANY website scripts will still use it, as well as our chrome code.
Chrome code rename should be done eventually to make our FE more ES6 standard.
2018-07-24 23:32:01 +08:00
Andrew McCreight fe07c83676 Add a version of assertSameCompartment that works in all versions.
Use it in initFromOptions and finishParseTask.
2018-07-24 23:31:19 +08:00
wolfbeast dec7c5b421 Report an error if there are too many block scoped bindings 2018-07-24 23:31:14 +08:00
wolfbeast 3d3acb549a Crash fix: Fix array splice implementation. 2018-07-24 23:31:08 +08:00