Re: [whatwg/streams] Discard auto-allocated BYOB request on enqueue (#1171)

@ricea approved this pull request.

lgtm

> @@ -3136,6 +3136,13 @@ The following abstract operations support the implementation of the
      [$TransferArrayBuffer$](|firstPendingPullInto|'s [=pull-into descriptor/buffer=]).
  1. Perform ! [$ReadableByteStreamControllerInvalidateBYOBRequest$](|controller|).
  1. If ! [$ReadableStreamHasDefaultReader$](|stream|) is true
+  1. If |controller|.[=ReadableByteStreamController/[[pendingPullIntos]]=] is not
+     [=list/is empty|empty=],
+   1. Assert: |controller|.[=ReadableByteStreamController/[[pendingPullIntos]]=]'s [=list/size=]

I had to think about this for a while to understand why it was true. Could you perhaps add a note explaining it?

-- 
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/1171#pullrequestreview-773341857

Received on Thursday, 7 October 2021 00:35:27 UTC