Skip to content

Commit

Permalink
Document which then handler is called after a catch is handled (m…
Browse files Browse the repository at this point in the history
…dn#29507)

Document which `then` handler is called after a catch is handled
  • Loading branch information
DanKaplanSES authored Oct 6, 2023
1 parent 79c16bc commit e85b953
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ p1.then((value) => {
console.error(e.message); // "oh, no!"
})
.then(
() => console.log("after a catch the chain is restored"),
() => console.log("after a catch the chain is restored"), // "after a catch the chain is restored"
() => console.log("Not fired due to the catch"),
);

Expand All @@ -96,7 +96,7 @@ p1.then((value) => {
console.error(e); // "oh, no!"
})
.then(
() => console.log("after a catch the chain is restored"),
() => console.log("after a catch the chain is restored"), // "after a catch the chain is restored"
() => console.log("Not fired due to the catch"),
);
```
Expand Down

0 comments on commit e85b953

Please sign in to comment.