errors: provide defaults for unmapped uv errors
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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines