[whatwg/streams] Initialise readableStrategy without using an object literal (#839)

The strategy argument passed to the ReadableStream constructor within the
TransformStream argument used an object literal. The standard text only
uses object literal syntax in default arguments. In order to align the
reference implementation with the standard text, create the
`readableStrategy` object in explicit algorithm steps before passing it
to the constructor.

No functional changes.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/839

-- Commit Summary --

  * Initialise readableStrategy without using an object literal

-- File Changes --

    M reference-implementation/lib/transform-stream.js (6)

-- Patch Links --

https://github.com/whatwg/streams/pull/839.patch
https://github.com/whatwg/streams/pull/839.diff

-- 
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/pull/839

Received on Thursday, 12 October 2017 04:21:04 UTC