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

Unified Diff: src/debug/mirrors.js

Issue 2521723003: [promises] Remove IsPromise (Closed)
Patch Set: rebase again 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/builtins/builtins-promise.cc ('k') | src/js/async-await.js » ('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 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);
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/js/async-await.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698