Skip to content

Commit

Permalink
Layering: fix unhandled rejection tracking in PerformPromiseThen
Browse files Browse the repository at this point in the history
Fixes #383. then-ing a promise should always mark it as handled, not
just when the promise is already rejected.
  • Loading branch information
domenic committed Feb 12, 2016
1 parent d96e60a commit 2d3a8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Expand Up @@ -34954,7 +34954,7 @@ <h1>PerformPromiseThen ( _promise_, _onFulfilled_, _onRejected_, _resultCapabili
1. Let _reason_ be the value of _promise_'s [[PromiseResult]] internal slot.
1. If the value of _promise_'s [[PromiseIsHandled]] internal slot is *false*, perform HostPromiseRejectionTracker(_promise_, `"handle"`).
1. Perform EnqueueJob(`"PromiseJobs"`, PromiseReactionJob, &laquo; _rejectReaction_, _reason_ &raquo;).
1. Set _promise_'s [[PromiseIsHandled]] internal slot to *true*.
1. Set _promise_'s [[PromiseIsHandled]] internal slot to *true*.
1. Return _resultCapability_.[[Promise]].
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 2d3a8a2

Please sign in to comment.