This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Closed
Description
Is there a sound reason for choosing 0
as the magic value that disables the max listeners? It's essentially using 0
as a special value to represent unlimited
but JS already has a perfectly valid number to represent infinity: Infinity
. It would simplify the memory-leak checking as the 0 special case would no longer need checked. Any number would naturally return true for n < Infinity
.
Metadata
Assignees
Labels
No labels