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

LibWeb: Implement ReadableByteStreamController.[[CancelSteps]]

This commit is contained in:
Matthew Olsson 2023-04-08 06:31:36 -07:00 committed by Linus Groh
parent 8274906301
commit c97f6b7701
5 changed files with 68 additions and 0 deletions

View file

@ -8,6 +8,8 @@
#include <LibJS/Runtime/TypedArray.h>
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Streams/ReadableByteStreamController.h>
namespace Web::Streams {
@ -20,6 +22,10 @@ public:
JS::GCPtr<JS::TypedArrayBase> view();
void set_controller(JS::GCPtr<ReadableByteStreamController> value) { m_controller = value; }
void set_view(JS::GCPtr<JS::TypedArrayBase> value) { m_view = value; }
private:
explicit ReadableStreamBYOBRequest(JS::Realm&);