Skip to content

process: refactor unhandledRejection logic

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/promise into master

This commit prevents a deprecation warning from being emitted if the 'unhandledRejection' event was actually handled.

Fixes: https://github.com/nodejs/node/issues/28539

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

Merge request reports

Loading