[webkit-dev] JSC: Callback functions returning exception, what should be the JSValueRef return?

Brian Barnes ggadwa at charter.net
Tue Aug 11 12:34:50 PDT 2009

Darin Adler wrote:
> On Aug 11, 2009, at 12:15 PM, Brian Barnes wrote:
>> Oliver says when I return with an exception, line and sourceURL, etc, 
>> properties will be added to it, and then I can use that later to pick 
>> up the line number.
> That’s right.
>> You now say this doesn't seem happen, which means it would be 
>> impossible for me to pickup the line number (as there's no API for it.)
> What I meant to say is that this will only happen if the exception is 
> an object.
>> Or is it a third item, which is I need to create from a specific 
>> prototype TO get the line numbers added?
> It just needs to be an object which can have properties set on it, as 
> opposed to another kind of JavaScript value that can’t.
> I prefer to answer questions on a public mailing list where everyone 
> else can see the answers.
> At this point you should try some things. I think you know enough 
> about how this should work in theory, and you can let us know if 
> things don’t work in practice.
>     -- Darin 

Thank you, and I completely apologize for replying privately, I hit the 
"reply" instead of "reply all" and didn't notice this.  I've bounced the 
reply to this list.

[>] Brian

More information about the webkit-dev mailing list