node icon indicating copy to clipboard operation
node copied to clipboard

lib: disable default memory leak warning for AbortSignal

Open phryneas opened this issue 3 months ago • 12 comments

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.

phryneas avatar Nov 11 '24 13:11 phryneas