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

Unified Diff: src/js/macros.py

Issue 2589113002: [api] add API for Promise status and result. (Closed)
Patch Set: addressed comments Created 4 years 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 | « src/globals.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/macros.py
diff --git a/src/js/macros.py b/src/js/macros.py
index 83d6f4435bf9932fc44970e395b73abf93cf9e7b..9fb665def7c55b0ac1270227c73d188582856d4d 100644
--- a/src/js/macros.py
+++ b/src/js/macros.py
@@ -199,7 +199,8 @@ define kRegExpPrototypeSourceGetter = 30;
define kRegExpPrototypeOldFlagGetter = 31;
# [[PromiseState]] values:
-# These values should be kept in sync with PromiseStatus in globals.h
+# These values must be kept in sync with v8::Promise::PromiseState in
+# include/v8.h
define kPending = 0;
define kFulfilled = 1;
define kRejected = 2;
« no previous file with comments | « src/globals.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698