mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Fix typos in ReadableStream AO names
This commit is contained in:
parent
b88fddbf47
commit
7a31d3dd98
3 changed files with 11 additions and 11 deletions
|
@ -2630,12 +2630,12 @@ WebIDL::ExceptionOr<void> readable_stream_default_controller_enqueue(ReadableStr
|
|||
}
|
||||
|
||||
// 5. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(controller).
|
||||
readable_stream_default_controller_can_pull_if_needed(controller);
|
||||
readable_stream_default_controller_call_pull_if_needed(controller);
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#readable-stream-default-controller-call-pull-if-needed
|
||||
void readable_stream_default_controller_can_pull_if_needed(ReadableStreamDefaultController& controller)
|
||||
void readable_stream_default_controller_call_pull_if_needed(ReadableStreamDefaultController& controller)
|
||||
{
|
||||
// 1. Let shouldPull be ! ReadableStreamDefaultControllerShouldCallPull(controller).
|
||||
auto should_pull = readable_stream_default_controller_should_call_pull(controller);
|
||||
|
@ -2674,7 +2674,7 @@ void readable_stream_default_controller_can_pull_if_needed(ReadableStreamDefault
|
|||
controller.set_pull_again(false);
|
||||
|
||||
// 2. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(controller).
|
||||
readable_stream_default_controller_can_pull_if_needed(controller);
|
||||
readable_stream_default_controller_call_pull_if_needed(controller);
|
||||
}
|
||||
|
||||
return JS::js_undefined();
|
||||
|
@ -2778,7 +2778,7 @@ WebIDL::ExceptionOr<void> readable_byte_stream_controller_respond_in_readable_st
|
|||
// 3. If pullIntoDescriptor’s reader type is "none",
|
||||
if (pull_into_descriptor.reader_type == ReaderType::None) {
|
||||
// 1. Perform ? ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, pullIntoDescriptor).
|
||||
TRY(readable_byte_stream_controller_enqueue_detached_pull_into_queue(controller, pull_into_descriptor));
|
||||
TRY(readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(controller, pull_into_descriptor));
|
||||
|
||||
// 2. Let filledPullIntos be the result of performing ! ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller).
|
||||
auto filled_pulled_intos = readable_byte_stream_controller_process_pull_into_descriptors_using_queue(controller);
|
||||
|
@ -3103,7 +3103,7 @@ WebIDL::ExceptionOr<void> set_up_readable_stream_default_controller(ReadableStre
|
|||
VERIFY(!controller.pull_again());
|
||||
|
||||
// 4. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(controller).
|
||||
readable_stream_default_controller_can_pull_if_needed(controller);
|
||||
readable_stream_default_controller_call_pull_if_needed(controller);
|
||||
|
||||
return JS::js_undefined();
|
||||
}),
|
||||
|
@ -3792,7 +3792,7 @@ WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue(ReadableByteSt
|
|||
|
||||
// 5. If firstPendingPullInto’s reader type is "none", perform ? ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, firstPendingPullInto).
|
||||
if (first_pending_pull_into.reader_type == ReaderType::None)
|
||||
TRY(readable_byte_stream_controller_enqueue_detached_pull_into_queue(controller, first_pending_pull_into));
|
||||
TRY(readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(controller, first_pending_pull_into));
|
||||
}
|
||||
|
||||
// 9. If ! ReadableStreamHasDefaultReader(stream) is true,
|
||||
|
@ -3878,7 +3878,7 @@ WebIDL::ExceptionOr<GC::Ref<JS::ArrayBuffer>> transfer_array_buffer(JS::Realm& r
|
|||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#abstract-opdef-readablebytestreamcontrollerenqueuedetachedpullintotoqueue
|
||||
WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue_detached_pull_into_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor)
|
||||
WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor)
|
||||
{
|
||||
// 1. Assert: pullIntoDescriptor’s reader type is "none".
|
||||
VERIFY(pull_into_descriptor.reader_type == ReaderType::None);
|
||||
|
|
|
@ -65,7 +65,7 @@ WebIDL::ExceptionOr<void> set_up_readable_stream_byob_reader(ReadableStreamBYOBR
|
|||
void readable_stream_default_controller_close(ReadableStreamDefaultController&);
|
||||
bool readable_stream_default_controller_has_backpressure(ReadableStreamDefaultController&);
|
||||
WebIDL::ExceptionOr<void> readable_stream_default_controller_enqueue(ReadableStreamDefaultController&, JS::Value chunk);
|
||||
void readable_stream_default_controller_can_pull_if_needed(ReadableStreamDefaultController&);
|
||||
void readable_stream_default_controller_call_pull_if_needed(ReadableStreamDefaultController&);
|
||||
bool readable_stream_default_controller_should_call_pull(ReadableStreamDefaultController&);
|
||||
void readable_stream_default_controller_clear_algorithms(ReadableStreamDefaultController&);
|
||||
|
||||
|
@ -86,7 +86,7 @@ WebIDL::ExceptionOr<void> readable_byte_stream_controller_respond_with_new_view(
|
|||
|
||||
WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue(ReadableByteStreamController& controller, JS::Value chunk);
|
||||
WebIDL::ExceptionOr<GC::Ref<JS::ArrayBuffer>> transfer_array_buffer(JS::Realm& realm, JS::ArrayBuffer& buffer);
|
||||
WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue_detached_pull_into_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor);
|
||||
WebIDL::ExceptionOr<void> readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor);
|
||||
void readable_byte_stream_controller_commit_pull_into_descriptor(ReadableStream&, PullIntoDescriptor const&);
|
||||
void readable_byte_stream_controller_process_read_requests_using_queue(ReadableByteStreamController& controller);
|
||||
[[nodiscard]] SinglyLinkedList<GC::Root<PullIntoDescriptor>> readable_byte_stream_controller_process_pull_into_descriptors_using_queue(ReadableByteStreamController&);
|
||||
|
|
|
@ -100,7 +100,7 @@ void ReadableStreamDefaultController::pull_steps(Web::Streams::ReadRequest& read
|
|||
}
|
||||
// 3. Otherwise, perform ! ReadableStreamDefaultControllerCallPullIfNeeded(this).
|
||||
else {
|
||||
readable_stream_default_controller_can_pull_if_needed(*this);
|
||||
readable_stream_default_controller_call_pull_if_needed(*this);
|
||||
}
|
||||
|
||||
// 4. Perform readRequest’s chunk steps, given chunk.
|
||||
|
@ -112,7 +112,7 @@ void ReadableStreamDefaultController::pull_steps(Web::Streams::ReadRequest& read
|
|||
readable_stream_add_read_request(stream, read_request);
|
||||
|
||||
// 2. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(this).
|
||||
readable_stream_default_controller_can_pull_if_needed(*this);
|
||||
readable_stream_default_controller_call_pull_if_needed(*this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue