Index: src/debug/mirrors.js |
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js |
index edc6af5e5820b855ca19f72d03e2cdbb8b4efd3d..689235b151b351a2be160f564f5503964dbc57af 100644 |
--- a/src/debug/mirrors.js |
+++ b/src/debug/mirrors.js |
@@ -13,8 +13,6 @@ var IsNaN = global.isNaN; |
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; |
@@ -1267,7 +1265,7 @@ inherits(PromiseMirror, ObjectMirror); |
function PromiseGetStatus_(value) { |
- var status = %DebugGetProperty(value, promiseStateSymbol); |
+ var status = %PromiseStatus(value); |
if (status == 0) return "pending"; |
if (status == 1) return "resolved"; |
return "rejected"; |
@@ -1275,7 +1273,7 @@ function PromiseGetStatus_(value) { |
function PromiseGetValue_(value) { |
- return %DebugGetProperty(value, promiseResultSymbol); |
+ return %PromiseResult(value); |
} |