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

LibWeb: Implement WritableStreamDefaultWriter.write()

This commit is contained in:
Matthew Olsson 2023-04-09 15:21:58 -07:00 committed by Linus Groh
parent 48b67e41f0
commit 58f3009faa
5 changed files with 163 additions and 3 deletions

View file

@ -30,6 +30,7 @@ public:
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> abort(JS::Value reason);
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> close();
WebIDL::ExceptionOr<void> release_lock();
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> write(JS::Value chunk);
JS::GCPtr<WebIDL::Promise> closed_promise() { return m_closed_promise; }
void set_closed_promise(JS::GCPtr<WebIDL::Promise> value) { m_closed_promise = value; }