Bug 1501734 - Enable streams by default in the JS shell. r=tcampbell

Differential Revision: https://phabricator.services.mozilla.com/D9673

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jason Orendorff 2018-10-24 16:53:09 +00:00
Родитель d4785563da
Коммит 2c6280767e
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -10044,7 +10044,7 @@ SetContextOptions(JSContext* cx, const OptionParser& op)
#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
@ -10669,7 +10669,8 @@ main(int argc, char** argv, char** envp)
#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 "