Merge pull request #1436 from paroche/patch-60

Update article.md
This commit is contained in:
Ilya Kantor 2019-10-10 10:52:05 +03:00 committed by GitHub
commit 933861dec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -668,4 +668,4 @@ We can also generate our own errors using the `throw` operator. Technically, the
*Rethrowing* is a very important pattern of error handling: a `catch` block usually expects and knows how to handle the particular error type, so it should rethrow errors it doesn't know.
Even if we don't have `try..catch`, most environments allow to setup a "global" error handler to catch errors that "fall out". In-browser that's `window.onerror`.
Even if we don't have `try..catch`, most environments allow us to setup a "global" error handler to catch errors that "fall out". In-browser, that's `window.onerror`.