Open zhmushan opened 2 years ago
For this issue is the function write supposed to work on Buffer | Uint8Array | ArrayBuffer? cc @ronag @VoltrexKeyva
According 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.
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