Add ReadableWritablePair to Readable Streams for pipeThrough
In an effort to change the blink implementation of readable streams to better match the Web IDL descriptions in the Streams API Standard, this CL adds the ReadableWritablePair dictionary [1] to the ReadableStream class. ReadableWritablePair is used as a parameter for pipeThrough() to avoid unnecessary extraction of the readable and writable streams separately. This CL also includes changing the return type of pipeThrough() to ReadableStream*. Furthermore, the comments and ordering of operations in pipeThrough have also been changed to better reflect how the steps outlined in the Streams API Standard. [2] [1] https://streams.spec.whatwg.org/#dictdef-readablewritablepair [2] https://streams.spec.whatwg.org/#rs-pipe-through Bug: 1093862 Change-Id: I4a602f8bd03d300de5c4342d932b1ef8573943eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505260 Commit-Queue: Nidhi Jaju <nidhijaju@google.com> Reviewed-by:Adam Rice <ricea@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Cr-Commit-Position: refs/heads/master@{#822111}
Showing
Please register or sign in to comment