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

Unified Diff: src/js/macros.py

Issue 2552583002: [promises] Move promise constants to macros.py. (Closed)
Patch Set: 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 | « no previous file | src/js/promise.js » ('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 5ad578a2bed959994018ac8a6507b7636cc05075..83d6f4435bf9932fc44970e395b73abf93cf9e7b 100644
--- a/src/js/macros.py
+++ b/src/js/macros.py
@@ -197,3 +197,12 @@ define kArrayInstanceConstructorModified = 28;
define kLegacyFunctionDeclaration = 29;
define kRegExpPrototypeSourceGetter = 30;
define kRegExpPrototypeOldFlagGetter = 31;
+
+# [[PromiseState]] values:
+# These values should be kept in sync with PromiseStatus in globals.h
+define kPending = 0;
+define kFulfilled = 1;
+define kRejected = 2;
+
+define kResolveCallback = 0;
+define kRejectCallback = 1;
« no previous file with comments | « no previous file | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698