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

Unified Diff: src/mirror-debugger.js

Issue 1054763003: Wrap promise implementation in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months 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/debug.cc ('k') | src/promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mirror-debugger.js
diff --git a/src/mirror-debugger.js b/src/mirror-debugger.js
index b329f81db222fa2ada9fc3b312d1e01a56e5e5f5..0fffd619a771eb7bc3cf9d365a57f02039479d13 100644
--- a/src/mirror-debugger.js
+++ b/src/mirror-debugger.js
@@ -25,7 +25,7 @@ function ToggleMirrorCache(value) {
function ObjectIsPromise(value) {
try {
return IS_SPEC_OBJECT(value) &&
- !IS_UNDEFINED(%DebugGetProperty(value, builtins.promiseStatus));
+ !IS_UNDEFINED(%DebugGetProperty(value, builtins.$promiseStatus));
} catch (e) {
return false;
}
@@ -1335,7 +1335,7 @@ inherits(PromiseMirror, ObjectMirror);
function PromiseGetStatus_(value) {
- var status = %DebugGetProperty(value, builtins.promiseStatus);
+ var status = %DebugGetProperty(value, builtins.$promiseStatus);
if (status == 0) return "pending";
if (status == 1) return "resolved";
return "rejected";
@@ -1343,7 +1343,7 @@ function PromiseGetStatus_(value) {
function PromiseGetValue_(value) {
- return %DebugGetProperty(value, builtins.promiseValue);
+ return %DebugGetProperty(value, builtins.$promiseValue);
}
« no previous file with comments | « src/debug.cc ('k') | src/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698