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 EventEmitter
s.
Fixes: https://github.com/nodejs/node/issues/14699
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
process