1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:17:35 +00:00

LibWeb: Use ArrayBufferView for ReadableStreamBYOBReader

Which means that we now have support for DataViews.

Using the ArrayBufferView class also seems to make this read a whole
bunch nicer as well.
This commit is contained in:
Shannon Booth 2023-11-23 21:48:28 +13:00 committed by Andreas Kling
parent eab20129b9
commit 673329e1bd
7 changed files with 41 additions and 37 deletions

View file

@ -7,8 +7,7 @@
interface ReadableStreamBYOBReader {
constructor(ReadableStream stream);
// FIXME: This should accept an ArrayBufferView
Promise<ReadableStreamReadResult> read(any view);
Promise<ReadableStreamReadResult> read(ArrayBufferView view);
undefined releaseLock();
};