mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
Add necessary error report
This commit is contained in:
@@ -285,7 +285,10 @@ JS_BINDED_FUNC_IMPL(JavaScriptObjCBridge, callStaticMethod){
|
||||
args.rval().set(convertReturnValue(cx, call.getReturnValue(), call.getReturnValueType()));
|
||||
return ok;
|
||||
}
|
||||
return false;
|
||||
else {
|
||||
JS_ReportErrorUTF8(cx, "js_cocos2dx_JSObjCBridge : require at least the class name and the static method name");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user