- From: Mattias Buelens <notifications@github.com>
- Date: Thu, 01 Jul 2021 15:54:35 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/streams/pull/1130/review/697708863@github.com>
@MattiasBuelens commented on this pull request.
> @@ -1791,18 +1793,7 @@ has the following [=struct/items=]:
The <dfn id="rbs-controller-byob-request" attribute
for="ReadableByteStreamController">byobRequest</dfn> getter steps are:
- 1. If [=this=].[=ReadableByteStreamController/[[byobRequest]]=] is null and [=this=].[=ReadableByteStreamController/[[pendingPullIntos]]=] is not [=list/is
- empty|empty=],
- 1. Let |firstDescriptor| be [=this=].[=ReadableByteStreamController/[[pendingPullIntos]]=][0].
- 1. Let |view| be ! [$Construct$]({{%Uint8Array%}}, « |firstDescriptor|'s [=pull-into
- descriptor/buffer=], |firstDescriptor|'s [=pull-into descriptor/byte offset=] +
- |firstDescriptor|'s [=pull-into descriptor/bytes filled=], |firstDescriptor|'s [=pull-into
- descriptor/byte length=] − |firstDescriptor|'s [=pull-into descriptor/bytes filled=] »).
- 1. Let |byobRequest| be a [=new=] {{ReadableStreamBYOBRequest}}.
- 1. Set |byobRequest|.[=ReadableStreamBYOBRequest/[[controller]]=] to [=this=].
- 1. Set |byobRequest|.[=ReadableStreamBYOBRequest/[[view]]=] to |view|.
- 1. Set [=this=].[=ReadableByteStreamController/[[byobRequest]]=] to |byobRequest|.
- 1. Return [=this=].[=ReadableByteStreamController/[[byobRequest]]=].
+ 1. Return ! [$ReadableByteStreamControllerGetBYOBRequest$]([=this=]).
Don't forget to update the reference implementation as well. Or, to make your life easier, just steal [my commit](https://github.com/whatwg/streams/commit/7a8d7e72549f3cc8e5ac52fc083e580faf2e8410) from #1114. 😛
--
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/1130#pullrequestreview-697708863
Received on Thursday, 1 July 2021 22:54:47 UTC