LibWeb: Pass abort signal as its concrete type to ReadableStreamPipeTo

There's no real need to wrap it in a JS::Value just to unrwap it again.
This commit is contained in:
Timothy Flynn 2025-04-09 08:32:19 -04:00 committed by Tim Flynn
commit 3033929bb6
Notes: github-actions[bot] 2025-04-11 16:12:19 +00:00
4 changed files with 7 additions and 9 deletions

View file

@ -40,7 +40,7 @@ size_t readable_stream_get_num_read_requests(ReadableStream const&);
bool readable_stream_has_byob_reader(ReadableStream const&);
bool readable_stream_has_default_reader(ReadableStream const&);
GC::Ref<WebIDL::Promise> readable_stream_pipe_to(ReadableStream& source, WritableStream& dest, bool prevent_close, bool prevent_abort, bool prevent_cancel, JS::Value signal = JS::js_undefined());
GC::Ref<WebIDL::Promise> readable_stream_pipe_to(ReadableStream& source, WritableStream& dest, bool prevent_close, bool prevent_abort, bool prevent_cancel, GC::Ptr<DOM::AbortSignal> signal = {});
WebIDL::ExceptionOr<ReadableStreamPair> readable_stream_tee(JS::Realm&, ReadableStream&, bool clone_for_branch2);
WebIDL::ExceptionOr<ReadableStreamPair> readable_stream_default_tee(JS::Realm& realm, ReadableStream& stream, bool clone_for_branch2);