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); |
} |
}, |