Index: src/promise.js |
diff --git a/src/promise.js b/src/promise.js |
index 819074e62436a3724d3f07daa2561bd887e268ae..8214445c11a1e8e5f930aa31500e6c022724927e 100644 |
--- a/src/promise.js |
+++ b/src/promise.js |
@@ -38,6 +38,11 @@ var promiseRaw = GLOBAL_PRIVATE("Promise#raw"); |
if (!IS_SPEC_FUNCTION(resolver)) |
throw MakeTypeError('resolver_not_a_function', [resolver]); |
var promise = PromiseInit(this); |
+ if (DEBUG_IS_ACTIVE) { |
+ %DebugPromiseEvent({ type : "new Promise", |
+ promise: this, |
+ resolver: resolver }); |
+ } |
try { |
%DebugPromiseHandlePrologue(function() { return promise }); |
resolver(function(x) { PromiseResolve(promise, x) }, |