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

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

Issue 18648011: Implement Promise.fulfill, Promise.resolve and Promise.reject. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 5 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/bindings/v8/custom/V8PromiseCustom.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Promise.idl
diff --git a/Source/core/dom/Promise.idl b/Source/core/dom/Promise.idl
index 865b7390939a758cdeaeb7ab3d6b1775ea5ba37a..7dd0916f36e2ac7889d1752b2a5915092e7ce6ee 100644
--- a/Source/core/dom/Promise.idl
+++ b/Source/core/dom/Promise.idl
@@ -35,6 +35,10 @@
[Custom] Promise then(optional any fulfillCallback, optional any rejectCallback);
[Custom] Promise catch(optional any rejectCallback);
+ [Custom] static Promise fulfill(any value);
+ [Custom] static Promise resolve(any value);
+ [Custom] static Promise reject(any value);
+
[Custom] static Promise any(value... values);
[Custom] static Promise every(value... values);
[Custom] static Promise some(value... values);
« no previous file with comments | « Source/bindings/v8/custom/V8PromiseCustom.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698