Skip to content

errors: provide defaults for unmapped uv errors

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

libuv does not map 100% of errors. When an unmapped error is encountered, the Map returns undefined, which is then unsuccessfully destructured, causing an exception. This commit adds a default value in the event of an unmapped error.

A test will be added once #29285 lands.

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