forked from mirrors/0ad
Changes the Console to expose global functions to scripts instead of properties.
Fixes #2140 Refs #1886 This was SVN commit r13884.
This commit is contained in:
@@ -37,9 +37,6 @@ ScriptingHost::ScriptingHost()
|
||||
|
||||
if (!JS_DefineFunctions(m_Context, m_GlobalObject, ScriptFunctionTable))
|
||||
throw PSERROR_Scripting_SetupFailed();
|
||||
|
||||
if (!JS_DefineProperties(m_Context, m_GlobalObject, ScriptGlobalTable))
|
||||
throw PSERROR_Scripting_SetupFailed();
|
||||
}
|
||||
|
||||
ScriptingHost::~ScriptingHost()
|
||||
|
||||
Reference in New Issue
Block a user