Skip to content

Commit 70ad69b

Browse files
mlarcherMylesBorins
authored andcommitted
doc: outline when origin is set to unhandledRejection
PR-URL: #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>
1 parent 80eb221 commit 70ad69b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/api/process.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ changes:
237237
* `origin` {string} Indicates if the exception originates from an unhandled
238238
rejection or from an synchronous error. Can either be `'uncaughtException'` or
239239
`'unhandledRejection'`. The latter is only used in conjunction with the
240-
[`--unhandled-rejections`][] flag set to `strict` and an unhandled rejection.
240+
[`--unhandled-rejections`][] flag set to `strict` or `throw` and
241+
an unhandled rejection.
241242

242243
The `'uncaughtException'` event is emitted when an uncaught JavaScript
243244
exception bubbles all the way back to the event loop. By default, Node.js
@@ -306,7 +307,9 @@ added: v13.7.0
306307
* `err` {Error} The uncaught exception.
307308
* `origin` {string} Indicates if the exception originates from an unhandled
308309
rejection or from synchronous errors. Can either be `'uncaughtException'` or
309-
`'unhandledRejection'`.
310+
`'unhandledRejection'`. The latter is only used in conjunction with the
311+
[`--unhandled-rejections`][] flag set to `strict` or `throw` and
312+
an unhandled rejection.
310313

311314
The `'uncaughtExceptionMonitor'` event is emitted before an
312315
`'uncaughtException'` event is emitted or a hook installed via

0 commit comments

Comments
 (0)