aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/PromiseRejectionEvent.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/PromiseRejectionEvent.webidl')
-rw-r--r--components/script/dom/webidls/PromiseRejectionEvent.webidl3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webidls/PromiseRejectionEvent.webidl b/components/script/dom/webidls/PromiseRejectionEvent.webidl
index 43eb391ccfc..6ef93b8b1a7 100644
--- a/components/script/dom/webidls/PromiseRejectionEvent.webidl
+++ b/components/script/dom/webidls/PromiseRejectionEvent.webidl
@@ -4,8 +4,9 @@
// https://html.spec.whatwg.org/multipage/#the-promiserejectionevent-interface
-[Constructor(DOMString type, optional PromiseRejectionEventInit eventInitDict = {}), Exposed=(Window,Worker)]
+[Exposed=(Window,Worker)]
interface PromiseRejectionEvent : Event {
+ [Throws] constructor(DOMString type, optional PromiseRejectionEventInit eventInitDict = {});
readonly attribute Promise<any> promise;
readonly attribute any reason;
};