Skip to content

Commit 1f65c83

Browse files
dario-piotrowiczRafaelGSS
authored andcommitted
doc: clarify unhandledRejection events behaviors in process doc
PR-URL: #57654 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 62d2a57 commit 1f65c83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/process.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,10 @@ address such failures, a non-operational
578578
`resource.loaded`, which would prevent the `'unhandledRejection'` event from
579579
being emitted.
580580

581+
If an `'unhandledRejection'` event is emitted but not handled it will
582+
be raised as an uncaught exception. This alongside other behaviors of
583+
`'unhandledRejection'` events can changed via the [`--unhandled-rejections`][] flag.
584+
581585
### Event: `'warning'`
582586

583587
<!-- YAML

0 commit comments

Comments
 (0)