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:
Nikos Barkas 2011-01-01 09:44:17 +00:00
parent a987fe4844
commit b57f41acaf

View File

@ -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));