Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: disable default memory leak warning for AbortSignal #55816

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phryneas
Copy link

@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.

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: nodejs#54758
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Nov 11, 2024
@phryneas
Copy link
Author

(I'm not allowed to add the notable-change label, so someone else will have to do that)

@benjamingr
Copy link
Member

@jasnell wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants