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:
parent
dcb7bb4a92
commit
1daded768d
5 changed files with 138 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue