[Webkit-unassigned] [Bug 150358] Support for promise rejection events (unhandledrejection)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 28 16:13:42 PST 2016


--- Comment #7 from Joseph Pecoraro <joepeck at webkit.org> ---
>     - 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)}

This is defined in Web IDL:

Converting a JavaScript Value `v` to IDL `Promise<any>` type is the equivalent of `Promise.resolve(v)`.

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/20161129/5a27a12b/attachment.html>

More information about the webkit-unassigned mailing list