Re: [whatwg/streams] Support teeing readable byte streams (#1114)

@domenic commented on this pull request.



> @@ -1287,8 +1556,8 @@ function ReadableByteStreamControllerRespondWithNewView(controller, view) {
   if (firstDescriptor.byteOffset + firstDescriptor.bytesFilled !== view.byteOffset) {
     throw new RangeError('The region specified by view does not match byobRequest');
   }
-  if (firstDescriptor.byteLength !== view.byteLength) {
-    throw new RangeError('The buffer of view has different capacity than byobRequest');
+  if (firstDescriptor.byteLength < view.byteLength) {

Seems like this needs a corresponding spec change (and probably independent tests)

-- 
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/1114#pullrequestreview-621615348

Received on Thursday, 25 March 2021 22:03:20 UTC