Re: [whatwg/streams] Reject pending reads when releasing reader (#1168)

@MattiasBuelens commented on this pull request.



> @@ -3156,7 +3207,15 @@ The following abstract operations support the implementation of the
   1. Set |firstPendingPullInto|'s [=pull-into descriptor/buffer=] to !
      [$TransferArrayBuffer$](|firstPendingPullInto|'s [=pull-into descriptor/buffer=]).
  1. Perform ! [$ReadableByteStreamControllerInvalidateBYOBRequest$](|controller|).
- 1. If ! [$ReadableStreamHasDefaultReader$](|stream|) is true
+ 1. If |controller|.[=ReadableByteStreamController/[[pendingPullIntos]]=] is not

Hmm, looks like we have the same problem with *remainder* in step 6.2 of [`ReadableByteStreamControllerRespondInReadableState`](https://streams.spec.whatwg.org/commit-snapshots/53282dde15be5f844768c2167405660da3c29b2d/#readable-byte-stream-controller-respond-in-readable-state). If that fails, we also leave the stream in an inconsistent state. 🤔

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1168#discussion_r780557346

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1168/review/847034897@github.com>

Received on Friday, 7 January 2022 22:11:18 UTC