console: fixup `console.dir()` error handling
Apply the console: do not emit error events
changes properly to console.dir()
.
This was overlooked in f18e08d8 (https://github.com/nodejs/node/pull/9744).
/cc @Fishrock123
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
console