Unverified Commit cde272a0 authored by Jimmy Thomson's avatar Jimmy Thomson Committed by Anna Henningsen
Browse files

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
PR-URL: https://github.com/nodejs/node/pull/14715


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent 062beb08
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment