mirror of https://github.com/nodejs/node.git
process: invoke EventEmitter on `process`
This properly sets the `_maxListeners` property, which fixes the max listener warning. Closes #4924.pull/24502/head
parent
532d9929c7
commit
4d809e297f
|
@ -35,6 +35,7 @@
|
|||
value: process.constructor
|
||||
}
|
||||
});
|
||||
EventEmitter.call(process);
|
||||
|
||||
process.EventEmitter = EventEmitter; // process.EventEmitter is deprecated
|
||||
|
||||
|
|
Loading…
Reference in New Issue