doc: clarify unhandledRejection events behaviors in process doc

PR-URL: https://github.com/nodejs/node/pull/57654
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Dario Piotrowicz 2025-04-02 10:50:36 +01:00 committed by Marco Ippolito
parent cdf3fa241c
commit d940b15843
No known key found for this signature in database
GPG Key ID: 27F5E38D5B0A215F

View File

@ -578,6 +578,10 @@ address such failures, a non-operational
`resource.loaded`, which would prevent the `'unhandledRejection'` event from
being emitted.
If an `'unhandledRejection'` event is emitted but not handled it will
be raised as an uncaught exception. This alongside other behaviors of
`'unhandledRejection'` events can changed via the [`--unhandled-rejections`][] flag.
### Event: `'warning'`
<!-- YAML