Skip to content

ReadableStream detaches buffer pool (??) #39311

Open
@devsnek

Description

@devsnek

Version

17.0.0-pre

Platform

n/a

Subsystem

stream/web

What steps will reproduce the bug?

new ReadableStream({
	type: 'bytes',
	start(c) {
		c.enqueue(Buffer.from('hi'));
		c.close();
	},
}).getReader();

Buffer.from('hi!'); // TypeError: Cannot perform Construct on a detached ArrayBuffer

cc @jasnell

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.web streams

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions