Skip to content

Commit

Permalink
process: invoke EventEmitter on process
Browse files Browse the repository at this point in the history
This properly sets the `_maxListeners` property, which
fixes the max listener warning. Closes nodejs#4924.
  • Loading branch information
TooTallNate committed Mar 6, 2013
1 parent 532d992 commit 4d809e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node.js
Expand Up @@ -35,6 +35,7 @@
value: process.constructor
}
});
EventEmitter.call(process);

process.EventEmitter = EventEmitter; // process.EventEmitter is deprecated

Expand Down

0 comments on commit 4d809e2

Please sign in to comment.