Index: Source/core/workers/WorkerGlobalScope.idl |
diff --git a/Source/core/workers/WorkerGlobalScope.idl b/Source/core/workers/WorkerGlobalScope.idl |
index 7d631e36919b33bfb5bdc3064f986653aed54693..7c46856af85c3b905303dc919fd00f06047ad7ab 100644 |
--- a/Source/core/workers/WorkerGlobalScope.idl |
+++ b/Source/core/workers/WorkerGlobalScope.idl |
@@ -35,6 +35,8 @@ |
void close(); |
// TODO(philipj): onerror should be an OnErrorEventHandler. |
attribute EventHandler onerror; |
+ [RuntimeEnabled=PromiseRejectionEvent] attribute EventHandler onrejectionhandled; |
+ [RuntimeEnabled=PromiseRejectionEvent] attribute EventHandler onunhandledrejection; |
// attribute EventHandler onlanguagechange; |
// attribute EventHandler onoffline; |
// attribute EventHandler ononline; |