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 <gpunathi@in.ibm.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • 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.