This is kind of weird behavior I'm not sure what to think about. Iterating a cancelled readable stream will not throw...
const{ ReadableStream }=require('stream/web')conststream=newReadableStream({asyncstart(controller){},asyncpull(){},asynccancel(reason){}})asyncfunctionmain(){forawait(constchunkofstream){}assert(false)// ouch}stream.cancel(newError())main().catch(err=>{console.log(err)})This means that e.g. helpers from #39594 can succeeded without any data.
This is kind of weird behavior I'm not sure what to think about. Iterating a cancelled readable stream will not throw...
This means that e.g. helpers from #39594 can succeeded without any data.