Re: [whatwg/streams] ReadableStream constructor: standard text and reference implementation doesn't match (#917)

> [T]he TransformStream constructor has two strategy arguments and so can't use destructuring assignment for them

Why not? This seems like it'd work:
```
class TransformStream {
  constructor({transformer = {}, 
              {size: writableSizeFunction, highWaterMark: writableHighWaterMark} = {},
              {size: readableSizeFunction, highWaterMark: readableHighWaterMark} = {})
  {}
}
```

> I'm going to say that for consistency none of the constructors should use destructuring assignment.

I think this is an entirely fine outcome, but if you only want to do it this way because destructuring wouldn't work, then perhaps that's not needed.

-- 
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/917#issuecomment-379095246

Received on Thursday, 5 April 2018 22:26:45 UTC