Re: [whatwg/streams] Various fixes for readable byte streams (#1123)

@MattiasBuelens commented on this pull request.



> @@ -38,6 +39,13 @@ exports.implementation = class ReadableByteStreamControllerImpl {
       throw new TypeError(`The stream (in ${state} state) is not in the readable state and cannot be closed`);
     }
 
+    if (this._pendingPullIntos.length > 0) {

Done. I removed this check, and added tests to ensure we can call `close()` and afterwards respond with a *transferred* view (see web-platform-tests/wpt@9b7f4358098f0aea35eb8de8333ec5b6b6f46446).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1123#discussion_r616209252

Received on Monday, 19 April 2021 22:07:43 UTC