Require PromiseRejectionEventInit dictionary

This commit is contained in:
Kagami Sascha Rosylight 2019-11-12 12:04:00 +09:00
parent 47e39af0f3
commit 22278a8895
5 changed files with 12 additions and 26 deletions

View file

@ -6,12 +6,12 @@
[Exposed=(Window,Worker)]
interface PromiseRejectionEvent : Event {
[Throws] constructor(DOMString type, optional PromiseRejectionEventInit eventInitDict = {});
[Throws] constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
readonly attribute Promise<any> promise;
readonly attribute any reason;
};
dictionary PromiseRejectionEventInit : EventInit {
/* required */ Promise<any> promise;
required Promise<any> promise;
any reason;
};