Skip to content

util,errors: make display of errors consistent with browsers

In Chrome, adding or mutating properties does not change the output of Error objects displayed via console.log() etc. This change replicates that behavior in Node.js.

This is blocked until https://github.com/nodejs/node/pull/15694 lands as some of the changes depend on that PR.

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)

util tests

Merge request reports

Loading