diff --git a/js/src/gdb/gdb-tests.cpp b/js/src/gdb/gdb-tests.cpp index f5737e13b8f8..edb81c838224 100644 --- a/js/src/gdb/gdb-tests.cpp +++ b/js/src/gdb/gdb-tests.cpp @@ -79,7 +79,7 @@ main(int argc, const char** argv) /* Create the global object. */ JS::CompartmentOptions options; - options.behaviors().setVersion(JSVERSION_LATEST); + options.behaviors().setVersion(JSVERSION_DEFAULT); RootedObject global(cx, checkPtr(JS_NewGlobalObject(cx, &global_class, nullptr, JS::FireOnNewGlobalHook, options))); diff --git a/js/src/jsapi-tests/testPreserveJitCode.cpp b/js/src/jsapi-tests/testPreserveJitCode.cpp index ad2716cbf88e..583f3ef0e8dc 100644 --- a/js/src/jsapi-tests/testPreserveJitCode.cpp +++ b/js/src/jsapi-tests/testPreserveJitCode.cpp @@ -91,7 +91,7 @@ createTestGlobal(bool preserveJitCode) { JS::CompartmentOptions options; options.creationOptions().setPreserveJitCode(preserveJitCode); - options.behaviors().setVersion(JSVERSION_LATEST); + options.behaviors().setVersion(JSVERSION_DEFAULT); return JS_NewGlobalObject(cx, getGlobalClass(), nullptr, JS::FireOnNewGlobalHook, options); } END_TEST(test_PreserveJitCode) diff --git a/js/src/jsapi-tests/testWeakMap.cpp b/js/src/jsapi-tests/testWeakMap.cpp index 5cecea1b02f1..7376a66a891b 100644 --- a/js/src/jsapi-tests/testWeakMap.cpp +++ b/js/src/jsapi-tests/testWeakMap.cpp @@ -237,7 +237,7 @@ JSObject* newDelegate() /* Create the global object. */ JS::CompartmentOptions options; - options.behaviors().setVersion(JSVERSION_LATEST); + options.behaviors().setVersion(JSVERSION_DEFAULT); JS::RootedObject global(cx, JS_NewGlobalObject(cx, Jsvalify(&delegateClass), nullptr, JS::FireOnNewGlobalHook, options)); diff --git a/js/src/jsapi-tests/tests.cpp b/js/src/jsapi-tests/tests.cpp index 7a11a4d3de0a..cfd29c429702 100644 --- a/js/src/jsapi-tests/tests.cpp +++ b/js/src/jsapi-tests/tests.cpp @@ -87,7 +87,7 @@ JSObject* JSAPITest::createGlobal(JSPrincipals* principals) options.creationOptions().setStreamsEnabled(true); #endif printf("enabled\n"); - options.behaviors().setVersion(JSVERSION_LATEST); + options.behaviors().setVersion(JSVERSION_DEFAULT); newGlobal = JS_NewGlobalObject(cx, getGlobalClass(), principals, JS::FireOnNewGlobalHook, options); if (!newGlobal) diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index 16889ef5a7d4..c8c73b24ea9f 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -631,7 +631,7 @@ InitModuleLoader(JSContext* cx) options.setFileAndLine("shell/ModuleLoader.js", 1); options.setSelfHostingMode(false); options.setCanLazilyParse(false); - options.setVersion(JSVERSION_LATEST); + options.setVersion(JSVERSION_DEFAULT); options.werrorOption = true; options.strictOption = true; diff --git a/js/src/vm/SelfHosting.cpp b/js/src/vm/SelfHosting.cpp index dd9e7861fcf8..43fcb9acc18c 100644 --- a/js/src/vm/SelfHosting.cpp +++ b/js/src/vm/SelfHosting.cpp @@ -2604,7 +2604,7 @@ js::FillSelfHostingCompileOptions(CompileOptions& options) options.setFileAndLine("self-hosted", 1); options.setSelfHostingMode(true); options.setCanLazilyParse(false); - options.setVersion(JSVERSION_LATEST); + options.setVersion(JSVERSION_DEFAULT); options.werrorOption = true; options.strictOption = true;