Skip to content

Commit 0a34fcb

Browse files
jens-cappelletargos
authored andcommitted
lib: replace var with let/const
PR-URL: #30384 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 93ca4f4 commit 0a34fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) {
311311
} else {
312312
const len = handler.length;
313313
const listeners = arrayClone(handler, len);
314-
for (var i = 0; i < len; ++i) {
314+
for (let i = 0; i < len; ++i) {
315315
const result = ReflectApply(listeners[i], this, args);
316316

317317
// We check if result is undefined first because that

0 commit comments

Comments
 (0)