diff --git a/lib/events.js b/lib/events.js index 1e4d17beced571..0317eaf54aec00 100644 --- a/lib/events.js +++ b/lib/events.js @@ -314,7 +314,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) { } else { const len = handler.length; const listeners = arrayClone(handler, len); - for (var i = 0; i < len; ++i) { + for (let i = 0; i < len; ++i) { const result = ReflectApply(listeners[i], this, args); // We check if result is undefined first because that