Add necessary error report

This commit is contained in:
pandamicro
2017-08-17 10:00:33 +08:00
parent d2856798eb
commit f05ada4a44
2 changed files with 10 additions and 2 deletions
@@ -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;
}
}
/**