Skip to content

lib: disable default memory leak warning for AbortSignal#55816

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
phryneas:pr/abortsignal-maxlisteners
Dec 7, 2024
Merged

lib: disable default memory leak warning for AbortSignal#55816
nodejs-github-bot merged 1 commit intonodejs:mainfrom
phryneas:pr/abortsignal-maxlisteners

Conversation

@phryneas
Copy link
Contributor

@phryneas phryneas commented Nov 11, 2024

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: #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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-requested-v20.x PRs awaiting manual backport to the v20.x-staging branch. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants