Repository navigation
Writer cannot cope with ArrayBuffer #43433
Description
Activity
- addedweb streamsIssues and PRs related to the Web Streams API.Issues and PRs related to the Web Streams API.
on Jun 15, 2022 - addedstreamIssues and PRs related to Node.js streams.Issues and PRs related to Node.js streams.
on Jun 17, 2022 - addedhelp wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.
on Nov 4, 2022 For this issue is the function write supposed to work on Buffer | Uint8Array | ArrayBuffer?
cc @ronag @VoltrexKeyvaAccording to the documentation, the function write is not supposed to work on <ArrayBuffer> in node.(It works in chrome.)
writer.write(buf);
Using <Uint8Array> is fine.
So, this can be closed?
For this issue is the function write supposed to work on Buffer | Uint8Array | ArrayBuffer?
So, this can be closed?
No, CompressionStream and DecompressionStream are supposed to handle
BufferSource, that means, as per how this is done WebCryptoAPI -<ArrayBuffer> | <TypedArray> | <DataView> | <Buffer>should all be valid chunks.The WPTs for this will soon be enabled #50631.
- addedweb-standardsIssues and PRs related to web-platform APIs and standards compliance.Issues and PRs related to web-platform APIs and standards compliance.
on Nov 9, 2023 I'd like to work on this issue if no one is currently working on it.
I can investigate the
BufferSourcehandling inCompressionStream/DecompressionStreamand put together a PR with a regression test.- added a commit that references this issue
on Mar 2, 2026 - added a commit that references this issue
on Mar 10, 2026 - added 6 commits that reference this issue
on Apr 4, 2026
Version
v19.0.0-pre
Platform
Darwin
Subsystem
web/streams
What steps will reproduce the bug?
Try the following code both on chrome & nodejs:
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
Additional information
No response