Re: [streams] explicity operate on underlying source and sink instead of public methods (#321)

What do you mean by "specific ones implemented natively"?  I think we want to be able to do this piping off-main-thread:

```
rs.pipeTo(ws);
```

But if pipeTo() operates on public methods, then this cannot occur with:

```
ws.write = function() { ... };
rs.pipeTo(ws);
```

Code working with streams should not have to do an "if native, call different functions" switch.

Trying to detect a function override complicates optimizations and also comes at a perf cost due to constant checking on every call.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/321#issuecomment-90980905

Received on Wednesday, 8 April 2015 17:26:42 UTC