Skip to content

Commit 01ea5ba

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 ec514a6 commit 01ea5ba

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
@@ -314,7 +314,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) {
314314
} else {
315315
const len = handler.length;
316316
const listeners = arrayClone(handler, len);
317-
for (var i = 0; i < len; ++i) {
317+
for (let i = 0; i < len; ++i) {
318318
const result = ReflectApply(listeners[i], this, args);
319319

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

0 commit comments

Comments
 (0)