mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
minior fix for sm/Object.cpp
This commit is contained in:
@@ -250,7 +250,7 @@ namespace se {
|
||||
bool Object::defineFunction(const char *funcName, JSNative func)
|
||||
{
|
||||
JS::RootedObject object(__cx, _getJSObject());
|
||||
bool ok = JS_DefineFunction(__cx, object, funcName, func, minArgs, 0);
|
||||
bool ok = JS_DefineFunction(__cx, object, funcName, func, 0, 0);
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user