Merge pull request #1999 from zhang1pr/master

Fix a comment
This commit is contained in:
Ilya Kantor 2020-07-18 14:09:20 +03:00 committed by GitHub
commit 6e0944aeb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!");