Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 2797d79acbc83941058bc7f189dc228957fc82c9..4f9d4644d23c3a25c2f62fed7312c9473f67f30a 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -62,6 +62,12 @@ var lastMicrotaskId = 0; |
SET_PRIVATE(promise, promiseValue, value); |
SET_PRIVATE(promise, promiseOnResolve, onResolve); |
SET_PRIVATE(promise, promiseOnReject, onReject); |
+ if (DEBUG_IS_ACTIVE) { |
+ %DebugPromiseEvent({ type: "update Promise status", |
aandrey
2014/07/18 12:10:44
"update"
Alexandra Mikhaylova
2014/07/22 10:45:36
Done.
|
+ promise: promise, |
+ status: status, |
+ value: value }); |
+ } |
return promise; |
} |
@@ -234,6 +240,11 @@ var lastMicrotaskId = 0; |
-1); |
break; |
} |
+ if (DEBUG_IS_ACTIVE) { |
+ %DebugPromiseEvent({ type: "update Promise parent", |
aandrey
2014/07/18 12:10:44
"chain"
Alexandra Mikhaylova
2014/07/22 10:45:36
Done.
|
+ promise: deferred.promise, |
+ parentPromise: this }); |
+ } |
return deferred.promise; |
} |