LibWeb: Mark writable stream abort steps as infallible

These don't throw. We can remove a decent amount of exception handling
by marking them infallible.
This commit is contained in:
Timothy Flynn
2024-04-29 17:16:24 -04:00
committed by Andreas Kling
parent fc070c8cbd
commit 9d5e538247
Notes: sideshowbarker 2024-07-17 03:00:02 +09:00
7 changed files with 71 additions and 77 deletions

View File

@@ -63,7 +63,7 @@ WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> WritableStreamDefaultWriter::abort(JS
}
// 2. Return ! WritableStreamDefaultWriterAbort(this, reason).
return TRY(writable_stream_default_writer_abort(*this, reason))->promise();
return writable_stream_default_writer_abort(*this, reason)->promise();
}
// https://streams.spec.whatwg.org/#default-writer-close
@@ -117,7 +117,7 @@ WebIDL::ExceptionOr<JS::GCPtr<JS::Object>> WritableStreamDefaultWriter::write(JS
}
// 2. Return ! WritableStreamDefaultWriterWrite(this, chunk).
return TRY(writable_stream_default_writer_write(*this, chunk))->promise();
return writable_stream_default_writer_write(*this, chunk)->promise();
}
WritableStreamDefaultWriter::WritableStreamDefaultWriter(JS::Realm& realm)