Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: lint
  • Loading branch information
KhafraDev committed Mar 16, 2023
commit d84881f6fb58e407161ec39ed4404452ca914f68
4 changes: 2 additions & 2 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1281,8 +1281,8 @@ For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners`
the emitter.

For `EventTarget`s this is the only way to get the max event listeners for the
Comment thread
KhafraDev marked this conversation as resolved.
Resolved
event target. If the number of event handlers on a single EventTarget exceeds the
max set, the EventTarget will print a warning.
event target. If the number of event handlers on a single EventTarget exceeds
the max set, the EventTarget will print a warning.

```mjs
import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';
Expand Down