Skip to content

child_process: restore exec{File}Sync error props

Rodrigo Muino Tomonari requested to merge github/fork/targos/fix-cp-sync into master

In PR [1], a bunch of properties were removed from the error thrown by execSync and execFileSync. It turns out that some of those were still supposed to be there, as the documentation states that the error contains the entire result from the spawnSync call.

[1] https://github.com/nodejs/node/pull/13601

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)

child_process

Merge request reports

Loading