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

LibWeb/Streams: Make most algorithms return a NonnullGCPtr

Only the 'start algorithm' ever returns undefined (as a null GCPtr), so
let's type the others more strictly.
This commit is contained in:
Linus Groh 2023-04-14 13:47:17 +02:00
parent fc15fc36ce
commit d192f44523
6 changed files with 14 additions and 14 deletions

View file

@ -116,7 +116,7 @@ public:
JS::GCPtr<ReadableStream> stream() { return m_stream; }
void set_stream(JS::GCPtr<ReadableStream> stream) { m_stream = stream; }
WebIDL::ExceptionOr<JS::GCPtr<WebIDL::Promise>> cancel_steps(JS::Value reason);
WebIDL::ExceptionOr<JS::NonnullGCPtr<WebIDL::Promise>> cancel_steps(JS::Value reason);
WebIDL::ExceptionOr<void> pull_steps(NonnullRefPtr<ReadRequest>);
WebIDL::ExceptionOr<void> release_steps();