Description
Version
v18.10.0
Platform
Microsoft Windows NT 10.0.19043.0 x64
Subsystem
No response
What steps will reproduce the bug?
const rs = new ReadableStream({
start (controller) {
controller.enqueue(new Uint8Array([65]))
controller.close()
}
})
const cloned = structuredClone(rs, { transfer: [rs] })
After this the process will indefinitely stay open.
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
the process should exit
What do you see instead?
the process stays open indefinitely
Additional information
Exporting readableStreamTee would also solve my use case.
node/lib/internal/webstreams/readablestream.js
Line 1443 in 214354f
Metadata
Metadata
Assignees
Labels
No labels