Re: [streams] Implement readable stream teeing (b326a6e)

Yeah, @yutakahirano and I discussed this briefly in person in Tokyo. We think symmetry is important. For example for the non-byte-stream-case, the structured clone of `const r = new RegExp(); r.foo = "bar"` does not have a `foo` property.

For the byte stream case, especially a UA-generated byte stream where we know the Uint8Arrays don't have expandos or anything, we could optimize by only creating one clone and re-using the original. But that's an optimization.

I will add a note about this in the spec.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/commit/b326a6ebb0e67e5a57faecac0285dc003bce07bf#commitcomment-10585603

Received on Monday, 6 April 2015 15:42:32 UTC