forked from mirrors/0ad
Revert use of the isRunOnce flag after removal in 64b477625d of compile'n go, refs #4893.
This breaked a SM assertion, which was only caught in debug mode. It could have led to subtle bugs during the compilation of JS scripts. Still set the flag to its default value, because SM devs wanted to change the default in the future. This was SVN commit r22629.
This commit is contained in:
@@ -864,7 +864,7 @@ bool ScriptInterface::LoadScript(const VfsPath& filename, const std::string& cod
|
||||
|
||||
JS::CompileOptions options(m->m_cx);
|
||||
options.setFileAndLine(filenameStr.c_str(), lineNo);
|
||||
options.setIsRunOnce(true);
|
||||
options.setIsRunOnce(false);
|
||||
|
||||
JS::RootedFunction func(m->m_cx);
|
||||
JS::AutoObjectVector emptyScopeChain(m->m_cx);
|
||||
|
||||
Reference in New Issue
Block a user