Bug 1501734 - Enable streams by default in the JS shell. r=tcampbell
authorJason Orendorff <jorendorff@mozilla.com>
Thu, 25 Oct 2018 13:37:02 +0000
changeset 491336 c6a8b4d451afa922c4838bd202749c7e131cf05e
parent 491335 cac0d4aa79d1888f8b8886512be2b7d6b521c6d5
child 491337 0e96d60023213064e9dfef68c59979459248fd7a
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstcampbell
bugs1501734
milestone65.0a1
Bug 1501734 - Enable streams by default in the JS shell. r=tcampbell Differential Revision: https://phabricator.services.mozilla.com/D9673
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -10039,17 +10039,17 @@ SetContextOptions(JSContext* cx, const O
 #ifdef ENABLE_WASM_CRANELIFT
     wasmForceCranelift = op.getBoolOption("wasm-force-cranelift");
 #endif
 #ifdef ENABLE_WASM_GC
     enableWasmGc = op.getBoolOption("wasm-gc");
 #endif
     enableTestWasmAwaitTier2 = op.getBoolOption("test-wasm-await-tier2");
     enableAsyncStacks = !op.getBoolOption("no-async-stacks");
-    enableStreams = op.getBoolOption("enable-streams");
+    enableStreams = !op.getBoolOption("no-streams");
 
 #if defined ENABLE_WASM_GC && defined ENABLE_WASM_CRANELIFT
     // Note, once we remove --wasm-gc this test will no longer make any sense
     // and we'll need a better solution.
     if (enableWasmGc && wasmForceCranelift) {
         fprintf(stderr, "Do not combine --wasm-gc and --wasm-force-cranelift, they are incompatible.\n");
         return false;
     }
@@ -10664,17 +10664,18 @@ main(int argc, char** argv, char** envp)
                                    "instantiation on completion of tier2")
 #ifdef ENABLE_WASM_GC
         || !op.addBoolOption('\0', "wasm-gc", "Enable wasm GC features")
 #else
         || !op.addBoolOption('\0', "wasm-gc", "No-op")
 #endif
         || !op.addBoolOption('\0', "no-native-regexp", "Disable native regexp compilation")
         || !op.addBoolOption('\0', "no-unboxed-objects", "Disable creating unboxed plain objects")
-        || !op.addBoolOption('\0', "enable-streams", "Enable WHATWG Streams")
+        || !op.addBoolOption('\0', "enable-streams", "Enable WHATWG Streams (default)")
+        || !op.addBoolOption('\0', "no-streams", "Disable WHATWG Streams")
 #ifdef ENABLE_SHARED_ARRAY_BUFFER
         || !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