<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Support for promise rejection events (unhandledrejection)"
href="https://bugs.webkit.org/show_bug.cgi?id=150358#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Support for promise rejection events (unhandledrejection)"
href="https://bugs.webkit.org/show_bug.cgi?id=150358">bug 150358</a>
from <span class="vcard"><a class="email" href="mailto:joepeck@webkit.org" title="Joseph Pecoraro <joepeck@webkit.org>"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=295505&action=diff" name="attach_295505" title="[PATCH] Work in Progress">attachment 295505</a> <a href="attachment.cgi?id=295505&action=edit" title="[PATCH] Work in Progress">[details]</a></span>
[PATCH] Work in Progress
I haven't written tests or updated LayoutTests, but this was a preliminary attempt that looked good in my most basic tests. A few things that need to be handled:
- PromiseRejectionEvent
- when constructed with a value for "promise" that is not an instance of a Promise we should wrap it in a Promise (Blink does this)
- new PromiseRejectionEvent("event-name", {promise:1}) => should be as if {promise: Promise.resolve(1)}
- Layout Tests
- update existing
- write new tests covering the Event and event handlers
- Web Inspector support (probably a follow-up bug)
- pause on unhandled rejection
- if log errors for unhandled rejections then later suppress these errors when the promise does get handled ("revoke")</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>