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

LibWeb: Implement ReadableStreamBYOBReader::read

Similiarly to the underlying AO's, currently only TypedArrays are
supported.
This commit is contained in:
Shannon Booth 2023-11-19 12:44:42 +13:00 committed by Andreas Kling
parent dcb7bb4a92
commit 1daded768d
5 changed files with 138 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#import <Streams/ReadableStream.idl>
#import <Streams/ReadableStreamDefaultReader.idl>
#import <Streams/ReadableStreamGenericReader.idl>
// https://streams.spec.whatwg.org/#readablestreambyobreader
@ -6,7 +7,9 @@
interface ReadableStreamBYOBReader {
constructor(ReadableStream stream);
// FIXME: Promise<ReadableStreamReadResult> read(ArrayBufferView view);
// FIXME: This should accept an ArrayBufferView
Promise<ReadableStreamReadResult> read(any view);
undefined releaseLock();
};
ReadableStreamBYOBReader includes ReadableStreamGenericReader;