mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: clarify exceptions during uncaughtException
PR-URL: https://github.com/nodejs/node/pull/5180 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Benjamin Gruenbaum <inglor@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
1 parent
972c06389c
commit
ec4d6b942f
1 file changed
+4
@@ -112,6 +112,10 @@ Do *not* use it as the Node.js equivalent of `On Error Resume Next`. An
|
||||
unhandled exception means your application - and by extension Node.js itself -
|
||||
is in an undefined state. Blindly resuming means *anything* could happen.
|
||||
|
||||
Exceptions thrown from within the event handler will not be caught. Instead the
|
||||
process will exit with a non zero exit code and the stack trace will be printed.
|
||||
This is to avoid infinite recursion.
|
||||
|
||||
Think of resuming as pulling the power cord when you are upgrading your system.
|
||||
Nine out of ten times nothing happens - but the 10th time, your system is bust.
|
||||
|
||||
|
||||
Reference in new issue
Block a user