forked from mirrors/0ad
Use js compiler option for strict-mode
The context option enabling strict mode was removed in sm-117 [1] requiring to use the compiler option for the same purpose instead. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1621603 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -127,8 +127,6 @@ ScriptContext::ScriptContext(int contextSize, int heapGrowthBytesGCTrigger):
|
||||
JS_SetGlobalJitCompilerOption(m_cx, JSJITCOMPILER_SPECTRE_STRING_MITIGATIONS, 0);
|
||||
JS_SetGlobalJitCompilerOption(m_cx, JSJITCOMPILER_SPECTRE_OBJECT_MITIGATIONS, 0);
|
||||
|
||||
JS::ContextOptionsRef(m_cx).setStrictMode(true);
|
||||
|
||||
ScriptEngine::GetSingleton().RegisterContext(m_cx);
|
||||
|
||||
JS::SetJobQueue(m_cx, m_JobQueue.get());
|
||||
|
||||
Reference in New Issue
Block a user