[Webkit-unassigned] [Bug 215877] [GTK] No way to determine if an exception has been thrown calling jsc_value_object_invoke_methodv

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 26 22:57:58 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215877

--- Comment #2 from Michael Gratton <mike at vee.net> ---
So I've just found `jsc_context_get_exception` and `jsc_context_clear_exception`, which helps (just)! There are some problems with this however:

 1. It is racy between invocations
 2. There's no documentation about when it's valid to call either method, if the latter needs to be called and if so, when
 3. There is no documentation to suggest this is actually useful for the use case above
 4. No members are ever set when this object is non-null due to an exception being thrown after call to `jsc_value_object_invoke_methodv` - name, source-uri, etc are always null, line and column numbers are always 0 (they're not even -1, since these are uints)

So aside from the fixes needed for (2)-(4), consider this a feature request for an API that doesn't have the limitations of (1). Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200827/92023e20/attachment-0001.htm>


More information about the webkit-unassigned mailing list