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
commit 9d5e538247
Notes: sideshowbarker 2024-07-17 03:00:02 +09:00
7 changed files with 71 additions and 77 deletions

View file

@ -20,7 +20,7 @@ class WritableStreamDefaultController final : public Bindings::PlatformObject {
public:
virtual ~WritableStreamDefaultController() override = default;
WebIDL::ExceptionOr<void> error(JS::Value error);
void error(JS::Value error);
JS::NonnullGCPtr<DOM::AbortSignal> signal() { return *m_signal; }
void set_signal(JS::NonnullGCPtr<DOM::AbortSignal> value) { m_signal = value; }
@ -50,7 +50,7 @@ public:
JS::GCPtr<WriteAlgorithm> write_algorithm() { return m_write_algorithm; }
void set_write_algorithm(JS::GCPtr<WriteAlgorithm> value) { m_write_algorithm = value; }
WebIDL::ExceptionOr<JS::GCPtr<WebIDL::Promise>> abort_steps(JS::Value reason);
JS::NonnullGCPtr<WebIDL::Promise> abort_steps(JS::Value reason);
void error_steps();
private: