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:
parent
cdf3fa241c
commit
d940b15843
@ -578,6 +578,10 @@ address such failures, a non-operational
|
|||||||
`resource.loaded`, which would prevent the `'unhandledRejection'` event from
|
`resource.loaded`, which would prevent the `'unhandledRejection'` event from
|
||||||
being emitted.
|
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'`
|
### Event: `'warning'`
|
||||||
|
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
|
Loading…
x
Reference in New Issue
Block a user