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

Unified Diff: src/js/promise.js

Issue 1463803002: [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 1 month 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/js/macros.py ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/promise.js
diff --git a/src/js/promise.js b/src/js/promise.js
index 794f57b6fc0f3197e8f8d8651c9414fb7dcc3f5c..1016cbba29be3fbf6afa3cdd8e159a5517a7d96f 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -71,7 +71,7 @@ var GlobalPromise = function Promise(resolver) {
var promise = PromiseInit(%NewObject(GlobalPromise, new.target));
try {
- %DebugPushPromise(promise, Promise, resolver);
+ %DebugPushPromise(promise, Promise);
var callbacks = CreateResolvingFunctions(promise);
resolver(callbacks.resolve, callbacks.reject);
} catch (e) {
@@ -139,7 +139,7 @@ function PromiseCoerce(constructor, x) {
function PromiseHandle(value, handler, deferred) {
try {
- %DebugPushPromise(deferred.promise, PromiseHandle, handler);
+ %DebugPushPromise(deferred.promise, PromiseHandle);
var result = handler(value);
if (result === deferred.promise)
throw MakeTypeError(kPromiseCyclic, result);
@@ -340,12 +340,10 @@ function PromiseThen(onResolve, onReject) {
function(x) {
x = PromiseCoerce(constructor, x);
if (x === that) {
- DEBUG_PREPARE_STEP_IN_IF_STEPPING(onReject);
return onReject(MakeTypeError(kPromiseCyclic, x));
} else if (IsPromise(x)) {
return x.then(onResolve, onReject);
} else {
- DEBUG_PREPARE_STEP_IN_IF_STEPPING(onResolve);
return onResolve(x);
}
},
« no previous file with comments | « src/js/macros.py ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698