[Webkit-unassigned] [Bug 147502] Uncaught Exception in promise does not trigger break on uncaught exception breakpoint

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 30 20:18:22 PDT 2018


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

--- Comment #2 from Mark Lam <mark.lam at apple.com> ---
(In reply to Devin Rousso from comment #1)
> An alternative solution would be to reclassify the try-catch used by
> builtins to be a `HandlerType::SynthesizedCatch`, but that is probably much
> more work and may have huge unforeseen consequences.

Would this simplify the solution?

If so, I would suggest NOT changing all builtin catch clauses to be HandlerType::SynthesizedCatch.  Instead:
1. introduce a new HandlerType::PromiseCatch
2. introduce an intrinsic function e.g. @isPromiseCatch(), and call it as the first statement inside the Promise builtin's catch that you want to be recognized as HandlerType::PromiseCatch.
3. modify the BytecodeGenerator to recognize the @isPromiseCatch() instrinsic and decorate the surrounding catch block as needing to be of type HandlerType::PromiseCatch.

Thereafter, do whatever magic you had in mind that comes from being able to identify the catch block as of type HandlerType::PromiseCatch.

-- 
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/20180831/64d89673/attachment.html>


More information about the webkit-unassigned mailing list