Skip to content

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).

Ref: https://github.com/nodejs/node/commit/f18e08d820dde161788d95a5603546ceca021e90#commitcomment-20934407

/cc @Fishrock123

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

console

Merge request reports

Loading