[webkit-dev] JSC: Callback functions returning exception, what should be the JSValueRef return?
ggadwa at charter.net
Tue Aug 11 10:28:02 PDT 2009
When I define a callback function (JSObjectCallAsFunctionCallback), and
I have it thrown an exception, what should be the return value? The
"A JSObject that is the constructor's return value"
... but the other side -- JSObjectCallAsFunction -- states:
"The JSValue that results from calling object as a function, or NULL if
an exception is thrown or object is not a function."
So should I also be returning NULL from my callback functions if I'm
throwing an exception? If so, you should probably improve the
More information about the webkit-dev