Index: src/js/promise.js |
diff --git a/src/js/promise.js b/src/js/promise.js |
index af1336c0141a9364bf07d13a321874243ee0d46e..36c3af75e816892b329a9569a8a04d3e37947664 100644 |
--- a/src/js/promise.js |
+++ b/src/js/promise.js |
@@ -143,14 +143,12 @@ function PromiseInit(promise) { |
} |
function FulfillPromise(promise, status, value, promiseQueue) { |
- if (GET_PRIVATE(promise, promiseStateSymbol) === kPending) { |
- var tasks = GET_PRIVATE(promise, promiseQueue); |
- if (!IS_UNDEFINED(tasks)) { |
- var deferred = GET_PRIVATE(promise, promiseDeferredReactionSymbol); |
- PromiseEnqueue(value, tasks, deferred, status); |
- } |
- PromiseSet(promise, status, value); |
+ var tasks = GET_PRIVATE(promise, promiseQueue); |
+ if (!IS_UNDEFINED(tasks)) { |
+ var deferred = GET_PRIVATE(promise, promiseDeferredReactionSymbol); |
+ PromiseEnqueue(value, tasks, deferred, status); |
} |
+ PromiseSet(promise, status, value); |
} |
function PromiseHandle(value, handler, deferred) { |