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

Unified Diff: Source/core/dom/Promise.idl

Issue 18113004: Implement Promise.prototype.then and Promise.prototype.catch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
Index: Source/core/dom/Promise.idl
diff --git a/Source/core/dom/Promise.idl b/Source/core/dom/Promise.idl
index 893b8eefcf88606ebbdc2d59962a106e074795a6..7460d95134bd7680f75b211c07d869d1949dd9a7 100644
--- a/Source/core/dom/Promise.idl
+++ b/Source/core/dom/Promise.idl
@@ -32,4 +32,6 @@
CustomConstructor(any init),
EnabledAtRuntime=promise
] interface Promise {
+ [Custom] Promise then(optional any fulfillCallback, optional any rejectCallback);
+ [Custom] Promise catch(optional any rejectCallback);
};

Powered by Google App Engine
This is Rietveld 408576698