Skip to content

Commit

Permalink
lib: replace var with let/const
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jens-cappelle authored and targos committed Dec 10, 2019
1 parent 93ca4f4 commit 0a34fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a34fcb

Please sign in to comment.