Index: src/debug/mirrors.js |
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js |
index 4bc86da7f461dbdf65602a3958ad03ac7e73200f..edc6af5e5820b855ca19f72d03e2cdbb8b4efd3d 100644 |
--- a/src/debug/mirrors.js |
+++ b/src/debug/mirrors.js |
@@ -106,12 +106,6 @@ function ClearMirrorCache(value) { |
} |
-function ObjectIsPromise(value) { |
- return IS_RECEIVER(value) && |
- !IS_UNDEFINED(%DebugGetProperty(value, promiseStateSymbol)); |
-} |
- |
- |
/** |
* Returns the mirror for a specified value or object. |
* |
@@ -168,7 +162,7 @@ function MakeMirror(value, opt_transient) { |
mirror = new SetMirror(value); |
} else if (IS_MAP_ITERATOR(value) || IS_SET_ITERATOR(value)) { |
mirror = new IteratorMirror(value); |
- } else if (ObjectIsPromise(value)) { |
+ } else if (%is_promise(value)) { |
mirror = new PromiseMirror(value); |
} else if (IS_GENERATOR(value)) { |
mirror = new GeneratorMirror(value); |