diff --git a/lib/events.js b/lib/events.js index 203a20ed8057cd..d91fdfe6d04da9 100644 --- a/lib/events.js +++ b/lib/events.js @@ -311,7 +311,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