- From: Till Schneidereit <notifications@github.com>
- Date: Thu, 05 Apr 2018 15:26:22 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 5 April 2018 22:26:45 UTC
> [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