diff --git a/lib/events.js b/lib/events.js index aef243978e7db6..f678beac9fbee8 100644 --- a/lib/events.js +++ b/lib/events.js @@ -50,10 +50,10 @@ function lazyErrors() { Object.defineProperty(EventEmitter, 'defaultMaxListeners', { enumerable: true, - get: function EventEmitterGet() { + get: function eventEmitterGet() { return defaultMaxListeners; }, - set: function EventEmitterSet(arg) { + set: function eventEmitterSet(arg) { if (typeof arg !== 'number' || arg < 0 || Number.isNaN(arg)) { const errors = lazyErrors(); throw new errors.ERR_OUT_OF_RANGE('defaultMaxListeners', @@ -64,7 +64,7 @@ Object.defineProperty(EventEmitter, 'defaultMaxListeners', { } }); -EventEmitter.init = function EventEmitterInit() { +EventEmitter.init = function eventEmitterInit() { if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) { @@ -437,7 +437,7 @@ EventEmitter.prototype.rawListeners = function rawListeners(type) { return _listeners(this, type, false); }; -EventEmitter.listenerCount = function EventEmitterListenerCount(emitter, type) { +EventEmitter.listenerCount = function eventEmitterListenerCount(emitter, type) { if (typeof emitter.listenerCount === 'function') { return emitter.listenerCount(type); } else {