add consistency
quick description: before: .catch(f) is the same as promise.then(null, f) after: .catch(f) is the same as .then(null, f)
This commit is contained in:
parent
e515f80a9f
commit
fd70f751e4
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ let promise = new Promise((resolve, reject) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
*!*
|
*!*
|
||||||
// .catch(f) is the same as promise.then(null, f)
|
// .catch(f) is the same as .then(null, f)
|
||||||
promise.catch(alert); // shows "Error: Whoops!" after 1 second
|
promise.catch(alert); // shows "Error: Whoops!" after 1 second
|
||||||
*/!*
|
*/!*
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue