1
0
forked from mirrors/0ad

Compatibility with non-threadsafe SpiderMonkey

This was SVN commit r7364.
This commit is contained in:
Ykkrosh
2010-03-19 19:54:00 +00:00
parent 99fc76e7dd
commit 31febafb05
4 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -467,7 +467,9 @@ bool ScriptInterface::IsExceptionPending(JSContext* cx)
JSClass* ScriptInterface::GetClass(JSContext* cx, JSObject* obj)
{
return JS_GetClass(cx, obj);
UNUSED2(cx); // unused if not JS_THREADSAFE
return JS_GET_CLASS(cx, obj);
}
void* ScriptInterface::GetPrivate(JSContext* cx, JSObject* obj)