Commit e56da062 authored by Rich Trott's avatar Rich Trott
Browse files

doc: use correct Error type for EventEmitter.defaultMaxListener

If a bad value is assigned to EventEmitter.defaultMaxListener, a
RangeError is thrown and not a TypeError. Update documentation to
reflect this.

PR-URL: https://github.com/nodejs/node/pull/35069


Reviewed-By: default avatarDaijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
parent c4b3b234
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment