[v11.x] src: pass along errors from PromiseWrap instantiation
Backport of one commit from https://github.com/nodejs/node/pull/25734, with a minor conflict due to #23443 resolved.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines