Re: [whatwg/streams] First draft at a pipeTo "algorithm" (#512)

Update: I made a lot of progress on this today. In the process I discovered some contradictions in the spec text as written, which was kind of expected. E.g. races between the various error conditions, or races between performing cleanup (now renamed shutdown) and finishing a write. The spec has been amended, and also the reference implementation has been rewritten to follow the spec.

There are still a number of failing (unconverted) tests, so I guess the algorithm is probably not quite right yet.

I was still not able to convert many tests because we have a lot of good tests that manage to put a stream in a given state asynchronously, possibly after some chunks have already passed through it. I am not sure yet whether I want to solve this in some kind of generative way (maybe like the templated tests) or just by porting them individually. I'll try to work on it tomorrow.

-- 
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/512#issuecomment-245451663

Received on Wednesday, 7 September 2016 23:35:22 UTC