[Webkit-unassigned] [Bug 150358] Support for promise rejection events
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 23 22:41:36 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=150358
--- Comment #3 from Richard Connamacher <richardconnamacher at gmail.com> ---
This feature is now in the ECMAScript and HTML standards.
ECMAScript 2016 defines when the host's unhandled promise rejection events should fire:
http://www.ecma-international.org/ecma-262/7.0/#sec-host-promise-rejection-tracker
HTML Living Standard defines the window unhandledrejection and rejectionhandled events:
https://html.spec.whatwg.org/multipage/webappapis.html#unhandled-promise-rejections
These events have thus far been implemented in Chrome and Node.
This is very useful, since uncaught (and unhandled) errors thrown inside promises are not seen by the window.onerror event, and in Safari do not even cause a message to be printed to the console. They just disappear silently into the ether. The unhandledrejection event fixes that, like window.onerror for promises.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160624/086fbcc7/attachment-0001.html>
More information about the webkit-unassigned
mailing list