[Webkit-unassigned] [Bug 203401] [GTK] Clear JSCContext exception before evaluating new code
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 5 09:15:51 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=203401
Adrian Perez <aperez at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aperez at igalia.com,
| |cgarcia at igalia.com
--- Comment #1 from Adrian Perez <aperez at igalia.com> ---
Currently we do not have any hint in the API documentation
about this. Basically: whether the exception is cleared or
not by jsc_context_evaluate_* is undefined.
I think that the proposal makes sense, but technically that
implies changing the behaviour of existing public API. To me
it looks unlikely that we would break applications with the
change: I would expect that applications that check for
exceptions after calls to evaluate JS code are already calling
jsc_context_clear_exception() and doing that implicitly at the
beginning of jsc_context_evaluate_* functions will just be a
no-op for those apps; and in the other hands new applications
can use the API in a more convenient way.
As this would be a change in the behaviour (even if small)
I think we need to be careful. I have CC'd Carlos García to
have a second opinion on this.
At any rate, thanks for the suggestion!
--
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/20191105/e0d5bce4/attachment.htm>
More information about the webkit-unassigned
mailing list