Skip to content

Commit

Permalink
Fix assertion failure in RespondInternal after transferring array buf…
Browse files Browse the repository at this point in the history
…fer in RespondWithNewView
  • Loading branch information
MattiasBuelens committed Nov 6, 2021
1 parent 9a23e91 commit 27332c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/readable-stream/byte-stream-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -932,9 +932,9 @@ export function ReadableByteStreamControllerRespondWithNewView(controller: Reada
throw new RangeError('The region specified by view is larger than byobRequest');
}

const viewByteLength = view.byteLength;
firstDescriptor.buffer = TransferArrayBuffer(view.buffer);

ReadableByteStreamControllerRespondInternal(controller, view.byteLength);
ReadableByteStreamControllerRespondInternal(controller, viewByteLength);
}

export function SetUpReadableByteStreamController(stream: ReadableByteStream,
Expand Down

0 comments on commit 27332c8

Please sign in to comment.