diff --git a/js/src/NamespaceImports.h b/js/src/NamespaceImports.h index 84ec65cfac82..20c33ea867b7 100644 --- a/js/src/NamespaceImports.h +++ b/js/src/NamespaceImports.h @@ -38,9 +38,6 @@ template class AutoVectorRooter; template class AutoHashMapRooter; template class AutoHashSetRooter; -class ContextOptions; -class AutoSaveContextOptions; - } // Do the importing. @@ -115,9 +112,6 @@ using JS::MutableHandleValue; using JS::Zone; -using JS::ContextOptions; -using JS::AutoSaveContextOptions; - } /* namespace js */ #endif /* NamespaceImports_h */ diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index 0008c3beea7b..97cda55522d3 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -423,7 +423,7 @@ RunFile(JSContext *cx, Handle obj, const char *filename, FILE *file, RootedScript script(cx); { - AutoSaveContextOptions asco(cx); + JS::AutoSaveContextOptions asco(cx); JS::ContextOptionsRef(cx).setCompileAndGo(true) .setNoScriptRval(true); @@ -690,7 +690,7 @@ Options(JSContext *cx, unsigned argc, jsval *vp) { CallArgs args = CallArgsFromVp(argc, vp); - ContextOptions oldOptions = JS::ContextOptionsRef(cx); + JS::ContextOptions oldOptions = JS::ContextOptionsRef(cx); for (unsigned i = 0; i < args.length(); i++) { JSString *str = JS_ValueToString(cx, args[i]); if (!str) @@ -1063,7 +1063,7 @@ Evaluate(JSContext *cx, unsigned argc, jsval *vp) RootedScript script(cx); { - AutoSaveContextOptions asco(cx); + JS::AutoSaveContextOptions asco(cx); JS::ContextOptionsRef(cx).setCompileAndGo(compileAndGo) .setNoScriptRval(noScriptRval); @@ -1226,7 +1226,7 @@ Run(JSContext *cx, unsigned argc, jsval *vp) RootedScript script(cx); int64_t startClock = PRMJ_Now(); { - AutoSaveContextOptions asco(cx); + JS::AutoSaveContextOptions asco(cx); JS::ContextOptionsRef(cx).setCompileAndGo(true) .setNoScriptRval(true); @@ -2064,7 +2064,7 @@ DisassFile(JSContext *cx, unsigned argc, jsval *vp) RootedScript script(cx); { - AutoSaveContextOptions asco(cx); + JS::AutoSaveContextOptions asco(cx); JS::ContextOptionsRef(cx).setCompileAndGo(true) .setNoScriptRval(true); @@ -3183,7 +3183,7 @@ Compile(JSContext *cx, unsigned argc, jsval *vp) RootedObject global(cx, JS::CurrentGlobalOrNull(cx)); JSString *scriptContents = JSVAL_TO_STRING(arg0); - AutoSaveContextOptions asco(cx); + JS::AutoSaveContextOptions asco(cx); JS::ContextOptionsRef(cx).setCompileAndGo(true) .setNoScriptRval(true); bool ok = JS_CompileUCScript(cx, global, JS_GetStringCharsZ(cx, scriptContents),