-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ReadableStream: modify tests for pipeThrough() having a brand check (#…
…14193) Remove tests that ReadableStream.prototype.pipeThrough operates generically on its arguments. Add tests that it performs brand checks on |this|, |readable| and |writable|, and throws for other precondition failures. Also verify that it *doesn't* call pipeTo(). Also verify that preventClose, preventCancel and preventAbort work, since we can no longer test that it passes through to pipeTo(). Also change the expected length of the function from 2 to 1 to reflect that the options argument is optional. Corresponding standard changes are at whatwg/streams#966.
- Loading branch information
Showing
2 changed files
with
162 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters