LibWeb: Add missing return statement to bail from a stream read request

As the spec states, we should invoke the failureSteps and abort.
This commit is contained in:
Timothy Flynn 2023-09-06 08:11:03 -04:00 committed by Tim Flynn
parent d1a1ace77a
commit df915f8a98
Notes: sideshowbarker 2024-07-17 05:41:34 +09:00

View file

@ -83,6 +83,7 @@ void ReadLoopReadRequest::on_chunk(JS::Value chunk)
}
m_failure_steps(exception.value());
return;
}
auto const& array = static_cast<JS::Uint8Array const&>(chunk.as_object());