Skip to content

Commit

Permalink
tls: name anonymous function in events.js
Browse files Browse the repository at this point in the history
  • Loading branch information
freelook committed Jul 11, 2018
1 parent 2591c43 commit 4275f08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 4275f08

Please sign in to comment.