Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 6d752d60ec88004bcfdca5df2baeb3b3ba6add3e..c7bd204bb0754615afc3464b3ae700f70112a19d 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -44,7 +44,7 @@ var lastMicrotaskId = 0; |
throw MakeTypeError('resolver_not_a_function', [resolver]); |
var promise = PromiseInit(this); |
try { |
- %DebugPushPromise(promise); |
+ %DebugPushPromise(promise, Promise); |
resolver(function(x) { PromiseResolve(promise, x) }, |
function(r) { PromiseReject(promise, r) }); |
} catch (e) { |
@@ -110,7 +110,7 @@ var lastMicrotaskId = 0; |
function PromiseHandle(value, handler, deferred) { |
try { |
- %DebugPushPromise(deferred.promise); |
+ %DebugPushPromise(deferred.promise, PromiseHandle); |
DEBUG_PREPARE_STEP_IN_IF_STEPPING(handler); |
var result = handler(value); |
if (result === deferred.promise) |