ladybird/Libraries/LibWeb/HTML/PromiseRejectionEvent.idl

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;
};