Skip to content

Editorial: Remove redundant assertion in "ReadableStream pipe through" and "ReadableStream pipe to"#1375

Open
yezhizhen wants to merge 2 commits into
whatwg:mainfrom
yezhizhen:patch-1
Open

Editorial: Remove redundant assertion in "ReadableStream pipe through" and "ReadableStream pipe to"#1375
yezhizhen wants to merge 2 commits into
whatwg:mainfrom
yezhizhen:patch-1

Conversation

@yezhizhen

@yezhizhen yezhizhen commented Jun 22, 2026

Copy link
Copy Markdown

This is removing redundancy that does not change behaviour.

For https://streams.spec.whatwg.org/#readablestream-pipe-through, the assertion is already done in step 4:

Let promise be ! ReadableStreamPipeTo(readable, transform.[[writable]], preventClose, preventAbort, preventCancel, signalArg).

Similarly, for https://streams.spec.whatwg.org/#readablestream-pipe, the assertion is done in step 4 as well:

Return ! ReadableStreamPipeTo(readable, writable, preventClose, preventAbort, preventCancel, signalArg).


Preview | Diff

pull Bot pushed a commit to Haofei/servo that referenced this pull request Jun 23, 2026
…rmStream` (servo#45885)

This implements
https://streams.spec.whatwg.org/#readablestream-pipe-through
Opened spec issue: whatwg/streams#1375

Testing: Covered by existing tests.
Fixes: servo#45864 (comment)
Part of servo#45860

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant