Compatibility with non-threadsafe SpiderMonkey

This was SVN commit r7364.
This commit is contained in:
Ykkrosh committed 2010-03-19 19:54:00 +00:00
1 parent 99fc76e7dd
commit 31febafb05
4 files changed
+9 -7

No files matched your search

+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)