PromiseRejectionEvent.idl 411 B

123456789101112131415
  1. #import <DOM/Event.idl>
  2. // https://html.spec.whatwg.org/multipage/webappapis.html#promiserejectionevent
  3. [Exposed=*]
  4. interface PromiseRejectionEvent : Event {
  5. constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
  6. readonly attribute object promise;
  7. readonly attribute any reason;
  8. };
  9. dictionary PromiseRejectionEventInit : EventInit {
  10. required object promise;
  11. any reason;
  12. };