1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27: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

@ -116,6 +116,8 @@ public:
JS::GCPtr<ReadableStream> stream() { return m_stream; }
void set_stream(JS::GCPtr<ReadableStream> stream) { m_stream = stream; }
WebIDL::ExceptionOr<JS::GCPtr<WebIDL::Promise>> cancel_steps(JS::Value reason);
private:
explicit ReadableByteStreamController(JS::Realm&);