1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibWeb: Implement WritableStreamDefaultWriter.close()

This commit is contained in:
Matthew Olsson 2023-04-02 10:41:03 -07:00 committed by Linus Groh
parent 0c441fa7af
commit 5f4da20a56
5 changed files with 39 additions and 1 deletions

View file

@ -28,6 +28,7 @@ public:
WebIDL::ExceptionOr<Optional<double>> desired_size() const;
JS::GCPtr<JS::Object> ready();
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> abort(JS::Value reason);
WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> close();
JS::GCPtr<WebIDL::Promise> closed_promise() { return m_closed_promise; }
void set_closed_promise(JS::GCPtr<WebIDL::Promise> value) { m_closed_promise = value; }