From 4275f08e023e35bdd49660ccf3c5102692da44f9 Mon Sep 17 00:00:00 2001 From: freelook Date: Wed, 11 Jul 2018 10:43:27 +0000 Subject: [PATCH] tls: name anonymous function in events.js Refs: #8913 --- lib/events.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {