We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79521d3 commit 168dd92Copy full SHA for 168dd92
lib/events.js
@@ -314,7 +314,7 @@ EventEmitter.prototype.emit = function emit(type, ...args) {
314
} else {
315
const len = handler.length;
316
const listeners = arrayClone(handler, len);
317
- for (var i = 0; i < len; ++i) {
+ for (let i = 0; i < len; ++i) {
318
const result = ReflectApply(listeners[i], this, args);
319
320
// We check if result is undefined first because that
0 commit comments