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

Unified Diff: src/objects.cc

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/js/macros.py ('k') | src/runtime/runtime-promise.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index ed61bcc5ccd039f3d9850aa6477105d3229a5915..6a73f7c82db5e49abc93227990d5ebc66774e85a 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -16484,11 +16484,11 @@ class StringSharedKey : public HashTableKey {
// static
const char* JSPromise::Status(int status) {
switch (status) {
- case kPromiseFulfilled:
+ case v8::Promise::kFulfilled:
return "resolved";
- case kPromisePending:
+ case v8::Promise::kPending:
return "pending";
- case kPromiseRejected:
+ case v8::Promise::kRejected:
return "rejected";
}
UNREACHABLE();
« no previous file with comments | « src/js/macros.py ('k') | src/runtime/runtime-promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698