Stream implement pipeThrough (#36977)

Part of https://github.com/servo/servo/issues/34676

https://github.com/servo/servo/pull/36905 needs to be merged first.

---------

Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
Taym Haddadi 2025-05-20 16:33:22 +02:00 committed by GitHub
parent d8294fa423
commit 5b2305784a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 129 additions and 227 deletions

View file

@ -6,63 +6,6 @@
[pipe-through.any.worker.html]
expected: ERROR
[Piping through a duck-typed pass-through transform stream should work]
expected: FAIL
[Piping through a transform errored on the writable end does not cause an unhandled promise rejection]
expected: FAIL
[pipeThrough should not call pipeTo on this]
expected: FAIL
[pipeThrough should not call pipeTo on the ReadableStream prototype]
expected: FAIL
[pipeThrough should brand-check this and not allow 'null']
expected: FAIL
[pipeThrough should brand-check this and not allow 'undefined']
expected: FAIL
[pipeThrough should brand-check this and not allow '0']
expected: FAIL
[pipeThrough should brand-check this and not allow 'NaN']
expected: FAIL
[pipeThrough should brand-check this and not allow 'true']
expected: FAIL
[pipeThrough should brand-check this and not allow 'ReadableStream']
expected: FAIL
[pipeThrough should brand-check this and not allow '[object ReadableStream\]']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'null']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'undefined']
expected: FAIL
[pipeThrough should brand-check writable and not allow '0']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'NaN']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'true']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'WritableStream']
expected: FAIL
[pipeThrough should brand-check writable and not allow '[object WritableStream\]']
expected: FAIL
[pipeThrough should rethrow errors from accessing readable or writable]
expected: FAIL
[pipe-through.any.sharedworker.html]
expected: ERROR
@ -84,59 +27,3 @@
[pipe-through.any.html]
expected: ERROR
[Piping through a duck-typed pass-through transform stream should work]
expected: FAIL
[Piping through a transform errored on the writable end does not cause an unhandled promise rejection]
expected: FAIL
[pipeThrough should not call pipeTo on this]
expected: FAIL
[pipeThrough should not call pipeTo on the ReadableStream prototype]
expected: FAIL
[pipeThrough should brand-check this and not allow 'null']
expected: FAIL
[pipeThrough should brand-check this and not allow 'undefined']
expected: FAIL
[pipeThrough should brand-check this and not allow '0']
expected: FAIL
[pipeThrough should brand-check this and not allow 'NaN']
expected: FAIL
[pipeThrough should brand-check this and not allow 'true']
expected: FAIL
[pipeThrough should brand-check this and not allow 'ReadableStream']
expected: FAIL
[pipeThrough should brand-check this and not allow '[object ReadableStream\]']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'null']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'undefined']
expected: FAIL
[pipeThrough should brand-check writable and not allow '0']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'NaN']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'true']
expected: FAIL
[pipeThrough should brand-check writable and not allow 'WritableStream']
expected: FAIL
[pipeThrough should brand-check writable and not allow '[object WritableStream\]']
expected: FAIL
[pipeThrough should rethrow errors from accessing readable or writable]
expected: FAIL