Fixed build breakage when JS_THREADSAFE was not defined.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3942 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
a987fe4844
commit
b57f41acaf
@ -1708,7 +1708,7 @@ BOOL OOJSObjectGetterImpl(JSContext *context, JSObject *object, JSClass *require
|
||||
Objective-C class test, and I don't think that's any faster.
|
||||
TODO: profile.
|
||||
*/
|
||||
JSClass *actualClass = JS_GetClass(context, object);
|
||||
JSClass *actualClass = OOJS_GetClass(context, object);
|
||||
if (EXPECT_NOT(!OOJSIsSubclass(actualClass, requiredJSClass)))
|
||||
{
|
||||
OOReportJSError(context, @"Native method expected %s, got %@.", requiredJSClass->name, JSObjectToNSString(context, object));
|
||||
|
Loading…
x
Reference in New Issue
Block a user