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

Unified Diff: src/debug/mirrors.js

Issue 2554013002: Revert of Create JSPromise (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 | « src/contexts.h ('k') | src/heap-symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/mirrors.js
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
index 689235b151b351a2be160f564f5503964dbc57af..edc6af5e5820b855ca19f72d03e2cdbb8b4efd3d 100644
--- a/src/debug/mirrors.js
+++ b/src/debug/mirrors.js
@@ -13,6 +13,8 @@
var JSONStringify = global.JSON.stringify;
var MapEntries;
var MapIteratorNext;
+var promiseStateSymbol = utils.ImportNow("promise_state_symbol");
+var promiseResultSymbol = utils.ImportNow("promise_result_symbol");
var SetIteratorNext;
var SetValues;
@@ -1265,7 +1267,7 @@
function PromiseGetStatus_(value) {
- var status = %PromiseStatus(value);
+ var status = %DebugGetProperty(value, promiseStateSymbol);
if (status == 0) return "pending";
if (status == 1) return "resolved";
return "rejected";
@@ -1273,7 +1275,7 @@
function PromiseGetValue_(value) {
- return %PromiseResult(value);
+ return %DebugGetProperty(value, promiseResultSymbol);
}
« no previous file with comments | « src/contexts.h ('k') | src/heap-symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698