Re: [streams] First draft at tee algorithms, for critique (#302)

> I think it is totally OK for res.body to change as a side-effect of calling res.clone(). There's a clear method mutation going on; it's not as if res.body !== res.body ever holds.

I think this is really bad and unexpected.

Why can't body be a wrapper around a concrete stream?  Then clone() would swap out the underlying stream, but the external users of .body would not be able to observe it.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/302#issuecomment-83667670

Received on Thursday, 19 March 2015 17:05:55 UTC