mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:45:09 +00:00
LibWeb: Make ReadableStreamAddReadRequest take a NonnullGCPtr
Make it more obvious in the function signature that this function will be taking a GC ref to a ReadRequest by appending it to the ReadableStreams pending read requests.
This commit is contained in:
parent
5ef41dca53
commit
f27e76b0b7
2 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ void readable_stream_error(ReadableStream& stream, JS::Value error)
|
|||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#readable-stream-add-read-request
|
||||
void readable_stream_add_read_request(ReadableStream& stream, ReadRequest& read_request)
|
||||
void readable_stream_add_read_request(ReadableStream& stream, JS::NonnullGCPtr<ReadRequest> read_request)
|
||||
{
|
||||
// 1. Assert: stream.[[reader]] implements ReadableStreamDefaultReader.
|
||||
VERIFY(stream.reader().has_value() && stream.reader()->has<JS::NonnullGCPtr<ReadableStreamDefaultReader>>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue