test: improve console coverage to check ignoreErrors
This PR can cover some uncovered lines on lib/console.js
.
see:https://coverage.nodejs.org/coverage-29ff16f04373d434/root/console.js.html
I checked write
function if ignoreErrors is false.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test