From f77441fb103f64940e37d07c8d94a34588eea6f0 Mon Sep 17 00:00:00 2001 From: Itms Date: Fri, 2 Sep 2016 16:35:58 +0000 Subject: [PATCH] SpiderMonkey 38 upgrade: 20/35 Some options have been moved from ctxt to runtime. Patch by leper. This was SVN commit r18674. --- source/scriptinterface/ScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/scriptinterface/ScriptInterface.cpp b/source/scriptinterface/ScriptInterface.cpp index 9e86744dfa..9710057f1c 100644 --- a/source/scriptinterface/ScriptInterface.cpp +++ b/source/scriptinterface/ScriptInterface.cpp @@ -353,7 +353,7 @@ ScriptInterface_impl::ScriptInterface_impl(const char* nativeScopeName, const sh JS_SetGlobalJitCompilerOption(m_runtime->m_rt, JSJITCOMPILER_ION_ENABLE, 1); JS_SetGlobalJitCompilerOption(m_runtime->m_rt, JSJITCOMPILER_BASELINE_ENABLE, 1); - JS::ContextOptionsRef(m_cx).setExtraWarnings(1) + JS::RuntimeOptionsRef(m_cx).setExtraWarnings(1) .setWerror(0) .setVarObjFix(1) .setStrictMode(1);