Skip to content

process: keep process prototype in inheritance chain

The global process object had its prototype replaced with a fresh object that had EventEmitter.prototype as its prototype. With this change, the original process.constructor.prototype is modified to have EventEmitter.prototype as its prototype, reflecting that process objects are also EventEmitters.

Fixes: https://github.com/nodejs/node/issues/14699

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

process

Merge request reports

Loading