- From: Ben Kelly <notifications@github.com>
- Date: Wed, 08 Apr 2015 10:26:16 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 8 April 2015 17:26:42 UTC
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