node
node copied to clipboard
lib: disable default memory leak warning for AbortSignal
This change sets the default kMaxEventTargetListeners
property for AbortSignal
instances to 0, disabling the check per default, to enable users to write isomorphic library code.
If desirable, the max event target listeners check can still be enabled for individual AbortSignal
instances by calling setMaxListeners
on them.
Refs: https://github.com/nodejs/node/issues/54758
I ran all the test I believe are relevant locally, but I can't run the full test suite as I'm working on a managed Mac and can't change firewall rules, so the test suite just explodes on me with popups.