minior fix for sm/Object.cpp

This commit is contained in:
James Chen
2017-10-24 16:02:47 +08:00
parent f4fb779391
commit 53e212835b
@@ -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;
}