зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1390106 - Stop using versioned scripts in js/src. r=luke
MozReview-Commit-ID: IfPBaEr62Mi --HG-- extra : rebase_source : 0dc69e03fead2713091cfd553d45dd9d1c485d27
This commit is contained in:
Родитель
38894511bc
Коммит
6b248fe3cd
|
@ -79,7 +79,7 @@ main(int argc, const char** argv)
|
||||||
|
|
||||||
/* Create the global object. */
|
/* Create the global object. */
|
||||||
JS::CompartmentOptions options;
|
JS::CompartmentOptions options;
|
||||||
options.behaviors().setVersion(JSVERSION_LATEST);
|
options.behaviors().setVersion(JSVERSION_DEFAULT);
|
||||||
|
|
||||||
RootedObject global(cx, checkPtr(JS_NewGlobalObject(cx, &global_class,
|
RootedObject global(cx, checkPtr(JS_NewGlobalObject(cx, &global_class,
|
||||||
nullptr, JS::FireOnNewGlobalHook, options)));
|
nullptr, JS::FireOnNewGlobalHook, options)));
|
||||||
|
|
|
@ -91,7 +91,7 @@ createTestGlobal(bool preserveJitCode)
|
||||||
{
|
{
|
||||||
JS::CompartmentOptions options;
|
JS::CompartmentOptions options;
|
||||||
options.creationOptions().setPreserveJitCode(preserveJitCode);
|
options.creationOptions().setPreserveJitCode(preserveJitCode);
|
||||||
options.behaviors().setVersion(JSVERSION_LATEST);
|
options.behaviors().setVersion(JSVERSION_DEFAULT);
|
||||||
return JS_NewGlobalObject(cx, getGlobalClass(), nullptr, JS::FireOnNewGlobalHook, options);
|
return JS_NewGlobalObject(cx, getGlobalClass(), nullptr, JS::FireOnNewGlobalHook, options);
|
||||||
}
|
}
|
||||||
END_TEST(test_PreserveJitCode)
|
END_TEST(test_PreserveJitCode)
|
||||||
|
|
|
@ -237,7 +237,7 @@ JSObject* newDelegate()
|
||||||
|
|
||||||
/* Create the global object. */
|
/* Create the global object. */
|
||||||
JS::CompartmentOptions options;
|
JS::CompartmentOptions options;
|
||||||
options.behaviors().setVersion(JSVERSION_LATEST);
|
options.behaviors().setVersion(JSVERSION_DEFAULT);
|
||||||
|
|
||||||
JS::RootedObject global(cx, JS_NewGlobalObject(cx, Jsvalify(&delegateClass), nullptr,
|
JS::RootedObject global(cx, JS_NewGlobalObject(cx, Jsvalify(&delegateClass), nullptr,
|
||||||
JS::FireOnNewGlobalHook, options));
|
JS::FireOnNewGlobalHook, options));
|
||||||
|
|
|
@ -87,7 +87,7 @@ JSObject* JSAPITest::createGlobal(JSPrincipals* principals)
|
||||||
options.creationOptions().setStreamsEnabled(true);
|
options.creationOptions().setStreamsEnabled(true);
|
||||||
#endif
|
#endif
|
||||||
printf("enabled\n");
|
printf("enabled\n");
|
||||||
options.behaviors().setVersion(JSVERSION_LATEST);
|
options.behaviors().setVersion(JSVERSION_DEFAULT);
|
||||||
newGlobal = JS_NewGlobalObject(cx, getGlobalClass(), principals, JS::FireOnNewGlobalHook,
|
newGlobal = JS_NewGlobalObject(cx, getGlobalClass(), principals, JS::FireOnNewGlobalHook,
|
||||||
options);
|
options);
|
||||||
if (!newGlobal)
|
if (!newGlobal)
|
||||||
|
|
|
@ -631,7 +631,7 @@ InitModuleLoader(JSContext* cx)
|
||||||
options.setFileAndLine("shell/ModuleLoader.js", 1);
|
options.setFileAndLine("shell/ModuleLoader.js", 1);
|
||||||
options.setSelfHostingMode(false);
|
options.setSelfHostingMode(false);
|
||||||
options.setCanLazilyParse(false);
|
options.setCanLazilyParse(false);
|
||||||
options.setVersion(JSVERSION_LATEST);
|
options.setVersion(JSVERSION_DEFAULT);
|
||||||
options.werrorOption = true;
|
options.werrorOption = true;
|
||||||
options.strictOption = true;
|
options.strictOption = true;
|
||||||
|
|
||||||
|
|
|
@ -2604,7 +2604,7 @@ js::FillSelfHostingCompileOptions(CompileOptions& options)
|
||||||
options.setFileAndLine("self-hosted", 1);
|
options.setFileAndLine("self-hosted", 1);
|
||||||
options.setSelfHostingMode(true);
|
options.setSelfHostingMode(true);
|
||||||
options.setCanLazilyParse(false);
|
options.setCanLazilyParse(false);
|
||||||
options.setVersion(JSVERSION_LATEST);
|
options.setVersion(JSVERSION_DEFAULT);
|
||||||
options.werrorOption = true;
|
options.werrorOption = true;
|
||||||
options.strictOption = true;
|
options.strictOption = true;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче