Skip to content

process: Change default --unhandled-rejections=warn-with-error-code

This is a semver-major change that resolves DEP0018.

In addition to changing the default value for --unhandled-rejections, this PR changes the exit code from 1 to 66. The warning message has been updated to mention the new exit code, which I selected in order to make this problem easier to search for on the web.

Users can prevent this behavior by setting a non-default value for the --unhandled-rejections flag (throw, strict, warn, or none) or by setting a hook for 'unhandledRejection'. This change has no effect on users who have already set the flag or installed an 'unhandledRejection' hook; it will only impact users who currently see a DEP0018 warning today.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading