Re: [whatwg/streams] "Set totalSize to totalSize + pair.[[size]]." (#582)

I agree that codifying the shortcut makes the most sense. If people are really concerned about the corner cases, we could add checks to `DequeueValue` and recalculate the cached total size if it becomes negative or is `MAX_SAFE_INTEGER` before subtracting the dequeue'd value's size. I don't think that that's required though, mostly because all implementations will end up behaving in the same way in these situations.

-- 
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/582#issuecomment-273309447

Received on Tuesday, 17 January 2017 21:43:56 UTC