Re: [whatwg/streams] Fix queue total size tracking logic (#661)

Note that the specific case you mention is fine. We don't call ResetQueue when the queue is empty. We call it when closing or erroring the stream.

I guess that is a bit weird that sometimes when the queue is empty during the course of operation desiredSize will be nonzero because of floating-point shenanigans, and sometimes it will be reset to 0. We could either accept this, or manually make DequeueValue reset the total size to 0 if the queue becomes empty.

-- 
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/pull/661#issuecomment-273641045

Received on Thursday, 19 January 2017 00:01:19 UTC