GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: document newer values for --unhandled-rejections flag · nodejs/node@e4f6141

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_options.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_options.cc‎

Copy file name to clipboardExpand all lines: src/node_options.cc
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,11 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
476476
&EnvironmentOptions::trace_warnings,
477477
kAllowedInEnvironment);
478478
AddOption("--unhandled-rejections",
479-
"define unhandled rejections behavior. Options are 'strict' (raise "
480-
"an error), 'warn' (enforce warnings) or 'none' (silence warnings)",
479+
"define unhandled rejections behavior. Options are 'strict' "
480+
"(always raise an error), 'throw' (raise an error unless "
481+
"'unhandledRejection' hook is set), 'warn' (log a warning), 'none' "
482+
"(silence warnings), 'warn-with-error-code' (log a warning and set "
483+
"exit code 1 unless 'unhandledRejection' hook is set).",
481484
&EnvironmentOptions::unhandled_rejections,
482485
kAllowedInEnvironment);
483486

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.