mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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.
16 lines
411 B
Plaintext
16 lines
411 B
Plaintext
#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;
|
|
};
|