mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
This change was made in the HTML spec to address a comment from the
Gecko team for the Streams API in
a20ca78975
It also opens the door for some more Promise related refactors.
15 lines
411 B
Text
15 lines
411 B
Text
#import <DOM/Event.idl>
|
|
|
|
// https://html.spec.whatwg.org/multipage/webappapis.html#promiserejectionevent
|
|
[Exposed=*]
|
|
interface PromiseRejectionEvent : Event {
|
|
constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
|
|
|
|
readonly attribute object promise;
|
|
readonly attribute any reason;
|
|
};
|
|
|
|
dictionary PromiseRejectionEventInit : EventInit {
|
|
required object promise;
|
|
any reason;
|
|
};
|