LibWeb/Streams: Move ReadableStream functions out of AbstractOperations

These are not defined in the abstract operations section of the spec and
are the publically exported Stream APIs exposed on ReadableStream.
This commit is contained in:
Shannon Booth 2024-12-08 17:28:44 +13:00 committed by Jelle Raaijmakers
parent c6d0f87bb7
commit 3f572d9ab7
Notes: github-actions[bot] 2024-12-11 14:12:43 +00:00
8 changed files with 136 additions and 131 deletions

View file

@ -68,7 +68,7 @@ void FetchedDataReceiver::on_data_received(ReadonlyBytes bytes)
HTML::TemporaryExecutionContext execution_context { m_stream->realm(), HTML::TemporaryExecutionContext::CallbacksEnabled::Yes };
// 1. Pull from bytes buffer into stream.
if (auto result = Streams::readable_stream_pull_from_bytes(m_stream, move(bytes)); result.is_error()) {
if (auto result = m_stream->pull_from_bytes(move(bytes)); result.is_error()) {
auto throw_completion = Bindings::exception_to_throw_completion(m_stream->vm(), result.release_error());
dbgln("FetchedDataReceiver: Stream error pulling bytes");