Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index ebc5802da12e7147d89908ef3bec7b0a1478d79c..b3d66acefeb6e172547f1c8784637711175d7870 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -246,10 +246,12 @@ function NewPromiseCapability(C) { |
} |
function PromiseDeferred() { |
+ %IncrementUseCounter(kPromiseDefer); |
return NewPromiseCapability(this); |
} |
function PromiseResolved(x) { |
+ %IncrementUseCounter(kPromiseAccept); |
return %_Call(PromiseCast, this, x); |
} |
@@ -314,6 +316,7 @@ function PromiseThen(onResolve, onReject) { |
// Chain is left around for now as an alias for then |
function PromiseChain(onResolve, onReject) { |
+ %IncrementUseCounter(kPromiseChain); |
return %_Call(PromiseThen, this, onResolve, onReject); |
} |