Merge pull request #1613 from dagolinuxoid/patch-3

add consistency
This commit is contained in:
Ilya Kantor 2019-11-30 09:56:50 +03:00 committed by GitHub
commit 9d09adaa4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
*/!* */!*
``` ```