mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 00:13:02 +00:00
LibWeb: Add a 'get a reader' helper method on ReadableStream
This commit is contained in:
parent
da408cb09a
commit
9ce0c5914b
Notes:
github-actions[bot]
2024-12-25 11:03:14 +00:00
Author: https://github.com/shannonbooth
Commit: 9ce0c5914b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3029
Reviewed-by: https://github.com/kennethmyhra ✅
5 changed files with 14 additions and 6 deletions
|
@ -134,7 +134,7 @@ WebIDL::ExceptionOr<void> FileReader::read_operation(Blob& blob, Type type, Opti
|
|||
auto stream = blob.get_stream();
|
||||
|
||||
// 6. Let reader be the result of getting a reader from stream.
|
||||
auto reader = TRY(acquire_readable_stream_default_reader(*stream));
|
||||
auto reader = TRY(stream->get_a_reader());
|
||||
|
||||
// 7. Let bytes be an empty byte sequence.
|
||||
ByteBuffer bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue