mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: outline when origin is set to unhandledRejection
PR-URL: https://github.com/nodejs/node/pull/35294 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
80eb22185e
commit
70ad69ba46
1 file changed
+5
-2
+5
-2
@@ -237,7 +237,8 @@ changes:
|
||||
* `origin` {string} Indicates if the exception originates from an unhandled
|
||||
rejection or from an synchronous error. Can either be `'uncaughtException'` or
|
||||
`'unhandledRejection'`. The latter is only used in conjunction with the
|
||||
[`--unhandled-rejections`][] flag set to `strict` and an unhandled rejection.
|
||||
[`--unhandled-rejections`][] flag set to `strict` or `throw` and
|
||||
an unhandled rejection.
|
||||
|
||||
The `'uncaughtException'` event is emitted when an uncaught JavaScript
|
||||
exception bubbles all the way back to the event loop. By default, Node.js
|
||||
@@ -306,7 +307,9 @@ added: v13.7.0
|
||||
* `err` {Error} The uncaught exception.
|
||||
* `origin` {string} Indicates if the exception originates from an unhandled
|
||||
rejection or from synchronous errors. Can either be `'uncaughtException'` or
|
||||
`'unhandledRejection'`.
|
||||
`'unhandledRejection'`. The latter is only used in conjunction with the
|
||||
[`--unhandled-rejections`][] flag set to `strict` or `throw` and
|
||||
an unhandled rejection.
|
||||
|
||||
The `'uncaughtExceptionMonitor'` event is emitted before an
|
||||
`'uncaughtException'` event is emitted or a hook installed via
|
||||
|
||||
Reference in new issue
Block a user