mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
LibWeb: Add ReadableStreamBYOBReader interface
This commit is contained in:
parent
2b269d4a49
commit
e8ad571082
6 changed files with 93 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Matthew Olsson <mattco@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibJS/Runtime/PromiseCapability.h>
|
||||
#include <LibWeb/Streams/ReadableStream.h>
|
||||
#include <LibWeb/Streams/ReadableStreamBYOBReader.h>
|
||||
|
||||
namespace Web::Streams {
|
||||
|
||||
ReadableStreamBYOBReader::ReadableStreamBYOBReader(JS::Realm& realm)
|
||||
: Bindings::PlatformObject(realm)
|
||||
, ReadableStreamGenericReaderMixin(realm)
|
||||
{
|
||||
}
|
||||
|
||||
void ReadableStreamBYOBReader::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
ReadableStreamGenericReaderMixin::visit_edges(visitor);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue