Re: [whatwg/streams] Resolving promises with byte sequences results in UB (Issue #1178)

> The last step you mention (resolving a promise) should not happen if you're using ReadableStreamDefaultReaderRead. That's only part of ReadableStreamDefaultReader.read().

A-Hah! You spotted (what is almost certainly) the [bug in my code]( https://hg.mozilla.org/try/rev/f9619d4888e88ca684326046aaff1b3a018a2bc8#l6.167) (The confusion comes from the ambigious naming in the JS implementation of streams just below!).

I'm past end-of-day here, but will look at fixing this tomorrow and make heads or tails of the rest. 



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1178#issuecomment-948088257

Received on Wednesday, 20 October 2021 22:36:37 UTC