Re: [whatwg/streams] "Let returnValue be the result of performing con..." (#982)

Some time ago I moved most of the state checks until after the call to `strategy.size()`. This avoids having to repeat the checks in case `strategy.size()` changed something. But it also means that `strategy.size()` can be called after the stream is closed. Or it could, until I added ClearAlgorithms().

ClearAlgorithms() was not intended to have any side-effects, but this particular side-effect seems acceptable. I will have to write a test for it, obviously.

-- 
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/982#issuecomment-460512471

Received on Tuesday, 5 February 2019 04:53:08 UTC