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); |
} |