Closed
Description
[command]
node --help server
[output]
...
--unhandled-rejections=...
define unhandled rejections behavior. Options are 'strict' (raise an error), 'warn' (enforce warnings) or 'none' (silence warnings)
...
[expected]
strict: Raise the unhandled rejection as an uncaught exception.
warn: Always trigger a warning, no matter if the unhandledRejection hook is set or not but do not print the deprecation warning.
none: Silence all warnings.
[reference]
https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode
[setup]
....
node v12.16.1
macOS v10.15.3 (catalina)
Metadata
Metadata
Assignees
Labels
No labels