mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 11:26:40 +00:00
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