Skip to content

Commit

Permalink
events: add back changes from c0a6320
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton committed May 12, 2024
1 parent e787353 commit acf96af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/events/slow_event_emitter.js
Expand Up @@ -177,7 +177,7 @@ SlowEventEmitter.prototype.addListener = function addListener(type, listener, pr
// No error code for this since it is a Warning
const w = genericNodeError(
`Possible EventEmitter memory leak detected. ${existing.length} ${String(type)} listeners ` +
`added to ${inspect(target, { depth: -1 })}. Use emitter.setMaxListeners() to increase limit`,
`added to ${inspect(target, { depth: -1 })}. MaxListeners is ${m}. Use emitter.setMaxListeners() to increase limit`,
{ name: 'MaxListenersExceededWarning', emitter: target, type: type, count: existing.length });
process.emitWarning(w);
}
Expand Down

0 comments on commit acf96af

Please sign in to comment.