coverage: fix broken coverage setup
This PR replaces console.warn()
and console.error()
in coverage setup with process._rawDebug()
, as console
hasn't been properly bootstrapped at this point. This PR also prevents a problematic call to process.cwd()
, which also hasn't been bootstrapped yet.
Fixes: https://github.com/nodejs/node/issues/25287
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines