PromiseRejectionEvent.idl 412 B

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