Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ReadableStream: Add a test that all queued writes complete when closing after first write #9573
This PR adds more tests for the new behavior introduced in whatwg/streams#884, namely that all queued writes must complete before a pipe operation becomes completed.
When the readable stream closes, the pipe operation should wait for all writes to complete, then close the writable stream (only if
The new tests are very similar to the one added in #5636, which verifies similar behavior for when the readable stream becomes errored.
It seems like the cases where
For completeness sake, I'll add another test for the case where