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

LibWeb: Implement WritableStreamDefaultWriter.abort()

This commit is contained in:
Matthew Olsson 2023-04-02 08:34:56 -07:00 committed by Linus Groh
parent c421b6113c
commit 0c441fa7af
5 changed files with 32 additions and 1 deletions

View file

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