-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unhandled promise rejection handler after a
.then
If we have a promise `p1` that is rejected, and invoke `then` on it, we create a new promise `p2` (as it should be, per the spec) and mark `p1` as handled. However, if we call `.catch` on `p2`, we are _not_ marking `p1` as handled correctly since its status is "pending" and not "rejected". This patch fixes it and adds some tests. Fixes #1461
- Loading branch information
1 parent
05c033d
commit 6c9d035
Showing
2 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters