Bug 1558971 - Enable the await fix by default in the JS shell. r=khyperia
☠☠ backed out by f15dfe18a9d9 ☠ ☠
authorJason Orendorff <jorendorff@mozilla.com>
Wed, 26 Jun 2019 15:53:43 +0000
changeset 543006 36683eb4d0dbbf080ba219e1d92a0fc65f6b88ed
parent 543005 421f7c4d60c07d68c965a3120b36a7d1d9fa8206
child 543007 d7e33c843b241b40873edfac5b6bbd3c151d11b0
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhyperia
bugs1558971
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1558971 - Enable the await fix by default in the JS shell. r=khyperia Depends on D35478 Differential Revision: https://phabricator.services.mozilla.com/D35978
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -10217,17 +10217,17 @@ static bool SetContextOptions(JSContext*
   enableWasmGc = op.getBoolOption("wasm-gc");
 #endif
   enableWasmVerbose = op.getBoolOption("wasm-verbose");
   enableTestWasmAwaitTier2 = op.getBoolOption("test-wasm-await-tier2");
   enableAsyncStacks = !op.getBoolOption("no-async-stacks");
   enableStreams = !op.getBoolOption("no-streams");
   enableBigInt = !op.getBoolOption("no-bigint");
   enableFields = op.getBoolOption("enable-experimental-fields");
-  enableAwaitFix = op.getBoolOption("enable-experimental-await-fix");
+  enableAwaitFix = !op.getBoolOption("disable-experimental-await-fix");
 
   JS::ContextOptionsRef(cx)
       .setBaseline(enableBaseline)
       .setIon(enableIon)
       .setAsmJS(enableAsmJS)
       .setWasm(enableWasm)
       .setWasmBaseline(enableWasmBaseline)
       .setWasmIon(enableWasmIon)
@@ -10957,18 +10957,18 @@ int main(int argc, char** argv, char** e
       !op.addBoolOption('\0', "no-unboxed-objects",
                         "Disable creating unboxed plain objects") ||
       !op.addBoolOption('\0', "enable-streams",
                         "Enable WHATWG Streams (default)") ||
       !op.addBoolOption('\0', "no-streams", "Disable WHATWG Streams") ||
       !op.addBoolOption('\0', "no-bigint", "Disable BigInt support") ||
       !op.addBoolOption('\0', "enable-experimental-fields",
                         "Enable fields in classes") ||
-      !op.addBoolOption('\0', "enable-experimental-await-fix",
-                        "Enable new, faster await semantics") ||
+      !op.addBoolOption('\0', "disable-experimental-await-fix",
+                        "Disable new, faster await semantics") ||
       !op.addStringOption('\0', "shared-memory", "on/off",
                           "SharedArrayBuffer and Atomics "
 #if SHARED_MEMORY_DEFAULT
                           "(default: on, off to disable)"
 #else
                           "(default: off, on to enable)"
 #endif
                           ) ||