Skip to content

fix: support Node.js 24 and 26 - #560

Open
mcollina wants to merge 2 commits into
mainfrom
fix/node-24-26-compatibility
Open

mcollina wants to merge 2 commits into
mainfrom
fix/node-24-26-compatibility

Conversation

@mcollina

@mcollina mcollina commented Oct 6, 2026

Copy link
Copy Markdown
Member

Node.js 24.14 changes events.listenerCount() to reject emitters without a listenerCount method, which breaks the copied legacy pipe implementation. Use the instance-method optional check instead, with regression coverage. Node.js 26 also exposes sessionStorage, so allow it in the test harness's global leak check. Make the core net.Socket error assertion accept both the existing and newer error forms. This addresses nodejs/citgm#1168.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant