LibWeb: Remove exceptional return types from infallible stream IDL

This commit is contained in:
Timothy Flynn 2024-04-29 18:34:19 -04:00 committed by Andreas Kling
commit 2d4d16ac37
Notes: sideshowbarker 2024-07-16 23:51:07 +09:00
15 changed files with 26 additions and 29 deletions

View file

@ -19,9 +19,9 @@ class ReadableStreamGenericReaderMixin {
public:
virtual ~ReadableStreamGenericReaderMixin() = default;
WebIDL::ExceptionOr<JS::GCPtr<JS::Promise>> closed();
JS::GCPtr<JS::Promise> closed();
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> cancel(JS::Value reason);
JS::NonnullGCPtr<JS::Promise> cancel(JS::Value reason);
JS::GCPtr<ReadableStream> stream() const { return m_stream; }
void set_stream(JS::GCPtr<ReadableStream> stream) { m_stream = stream; }