You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Writable}from"node:stream";constnodeWriteable=newWritable({write(chunk,encoding,callback){// pending},highWaterMark: 5,objectMode: false,});constwebWritable=Writable.toWeb(nodeWriteable);constwriter=webWritable.getWriter();writer.write(newUint8Array(3));console.log(nodeWriteable.writableLength,writer.desiredSize);// expect 3,2 actual 0,4letpromise=writer.write(newUint8Array(3));console.log(nodeWriteable.writableLength,writer.desiredSize);// expect 6, -1, actual 0,3
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
I think writer.desiredSize should be equal to highWaterMark - odeWriteable.writableLength
Otherwise, after the Writable.toWeb() conversion, the buffer queue for the writable stream is expanded
What do you see instead?
none
Additional information
No response
The text was updated successfully, but these errors were encountered:
Version
v22.12.0
Platform
No response
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
I think
writer.desiredSize
should be equal tohighWaterMark - odeWriteable.writableLength
Otherwise, after the Writable.toWeb() conversion, the buffer queue for the writable stream is expanded
What do you see instead?
none
Additional information
No response
The text was updated successfully, but these errors were encountered: