process: invoke EventEmitter on `process`

This properly sets the `_maxListeners` property, which
fixes the max listener warning. Closes #4924.
pull/24502/head
Nathan Rajlich 2013-03-05 12:17:48 -08:00
parent 532d9929c7
commit 4d809e297f
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@
value: process.constructor
}
});
EventEmitter.call(process);
process.EventEmitter = EventEmitter; // process.EventEmitter is deprecated