[Webkit-unassigned] [Bug 124066] Uncaught exceptions raised in promise completion functions are not printed to console

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 2 16:59:18 PST 2013


--- Comment #1 from Alexey Proskuryakov <ap at webkit.org>  2013-12-02 16:57:39 PST ---
Created an attachment (id=218241)
 --> (https://bugs.webkit.org/attachment.cgi?id=218241&action=review)
another test case

A test case that doesn't use WebCrypto.

What happens here is when JSPromiseWrapperCallback::callPromiseWrapperCallback() sees an exception, it immediately clears it, and invokes resolver's reject callback with the exception as argument. But when there are no reject callbacks registered, it's just dropped on the floor.

Perhaps the exception shouldn't be cleared when there are no reject callbacks to handle it, and then JSGlobalObjectCallback could report it in the same way as other code that executes JS does. ScriptController::evaluateInWorld() and JSEventListener::handleEvent() seem like they could serve as models.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list