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
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
unless you want to undocument it, .read(0) for me is "start getting data from the underlying source but don't consume this stream yet". thus, it shouldn't emit end until .read(n) is called with anything but n === 0.
test case:
varstream=new(require('stream')).Readablestream.on('end',function(){console.log('end')})stream._read=function(){}stream.push(null)stream.read(0)// `end` is emitted but should notstream.read()// now `end` should be emitted
unless you want to undocument it,
.read(0)for me is "start getting data from the underlying source but don't consume this stream yet". thus, it shouldn't emitenduntil.read(n)is called with anything butn === 0.test case: