commit
6e0944aeb1
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ Here the `.catch` block finishes normally. So the next successful `.then` handle
|
|||
In the example below we see the other situation with `.catch`. The handler `(*)` catches the error and just can't handle it (e.g. it only knows how to handle `URIError`), so it throws it again:
|
||||
|
||||
```js run
|
||||
// the execution: catch -> catch -> then
|
||||
// the execution: catch -> catch
|
||||
new Promise((resolve, reject) => {
|
||||
|
||||
throw new Error("Whoops!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue