diff --git a/lib/events.js b/lib/events.js index 6b422d1b9a..69cfc4fc99 100644 --- a/lib/events.js +++ b/lib/events.js @@ -21,7 +21,7 @@ process.EventEmitter.prototype.emit = function (type) { if (!this._events[type]) return false; if (typeof this._events[type] == 'function') { - if (arguments.length < 3) { + if (arguments.length <= 3) { // fast case this._events[type].call( this , arguments[1]