<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#c7">Comment # 7</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><span class="quote">> - 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)}</span >
This is defined in Web IDL:
<<a href="https://heycam.github.io/webidl/#es-promise">https://heycam.github.io/webidl/#es-promise</a>>
Converting a JavaScript Value `v` to IDL `Promise<any>` type is the equivalent of `Promise.resolve(v)`.</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>