Re: [whatwg/streams] What is the expected behaviour of .pipeThrough()? (#765)

@domenic Compiled the resources at https://github.com/whatwg/streams/tree/master/reference-implementation/lib at a single file at http://plnkr.co/edit/W2e13mC5ZZrtkIE07okr?p=preview and tried 

```
const { readable, writable } = new TransformStream({
  transform(chunk) {
    return chunk.map(c => c * 10);
  }
});

console.log(readable, writable);

new ReadableStream({
    pull(c) {
      c.enqueue([1, 2, 3]);
      c.close()
    }
  })
  .pipeThrough({readable, writable})
  .getReader()
  .read()
  .then(data => console.log(data)) // `{value: undefined, done: true}`
```
though `value` of object parameter at `.then()` following `.read()` is `undefined`. What needs to be adjusted to realize expected result `{value: [10, 20, 30], done: true /* false */}`?



-- 
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/issues/765#issuecomment-323609072

Received on Sunday, 20 August 2017 20:16:21 UTC