When I define a callback function (JSObjectCallAsFunctionCallback), and I have it thrown an exception, what should be the return value? The documentation says:

"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 documentation there.

[>] Brian
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to