X Tutup
The Wayback Machine - https://web.archive.org/web/20230218081756/https://github.com/nodejs/node/commit/e4f614100f
Skip to content
Permalink
Browse files
src: document newer values for --unhandled-rejections flag
These values were added in v15.0.0 by #33475 but were not included in
the `node --help` output.

Also documents which value is the default.

PR-URL: #37899
Fixes: #37896
Refs: #33475
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
glasser authored and targos committed May 1, 2021
1 parent e4d1042 commit e4f6141
Showing 1 changed file with 5 additions and 2 deletions.
@@ -476,8 +476,11 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
&EnvironmentOptions::trace_warnings,
kAllowedInEnvironment);
AddOption("--unhandled-rejections",
"define unhandled rejections behavior. Options are 'strict' (raise "
"an error), 'warn' (enforce warnings) or 'none' (silence warnings)",
"define unhandled rejections behavior. Options are 'strict' "
"(always raise an error), 'throw' (raise an error unless "
"'unhandledRejection' hook is set), 'warn' (log a warning), 'none' "
"(silence warnings), 'warn-with-error-code' (log a warning and set "
"exit code 1 unless 'unhandledRejection' hook is set).",
&EnvironmentOptions::unhandled_rejections,
kAllowedInEnvironment);

0 comments on commit e4f6141

Please sign in to comment.
X Tutup