Hello all,

I have implement a JS object named "myObject" with the JavaScriptCore(JSC)
API, and it has a method named getValues(),  called as following:
    myObject.getValues();

And it define like this:
JSStaticFunction staticFunc[] = {
    {"getValues", getValue_cb, kJSPropertyAttributeReadOnly},
    {NULL, NULL, NULL, NULL}
};

The prototype of getValue_cb callback function like this:
JSValueRef getValue_cb(JSContextRef context, JSObjectRef function,
JSObjectRef object,
                        size_t argumentCount, const JSValueRef arguments[],
JSValueRef *exception)

I have two problems about the getValue_cb callback function:
1    what is the purpose of the "JSObjectRef function" variable? In my case,
we never use.
2    In this function, i want to get the propertyName of the method, in this
case, we need "getValues", can be implemented ?

Appreciate any clues~

Thanks.

-Xiong
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to