Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: Source/core/workers/WorkerGlobalScope.idl

Issue 1179113007: Implement onunhandledrejection / onrejectionhandled events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerGlobalScope.idl
diff --git a/Source/core/workers/WorkerGlobalScope.idl b/Source/core/workers/WorkerGlobalScope.idl
index 7d631e36919b33bfb5bdc3064f986653aed54693..1d3f4d5c13a61e502bfe9b06435a2d5fbd000252 100644
--- a/Source/core/workers/WorkerGlobalScope.idl
+++ b/Source/core/workers/WorkerGlobalScope.idl
@@ -46,6 +46,11 @@
// Console API (non-standard but widely implemented in some form)
// https://developer.chrome.com/devtools/docs/console-api
[Replaceable] readonly attribute WorkerConsole console;
+
+ // Unhandled Promise Rejection Events
+ // https://github.com/domenic/unhandled-rejections-browser-spec
+ [RuntimeEnabled=PromiseRejectionEvent] attribute EventHandler onrejectionhandled;
+ [RuntimeEnabled=PromiseRejectionEvent] attribute EventHandler onunhandledrejection;
};
WorkerGlobalScope implements WindowBase64;
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698