mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
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:
parent
d1a1ace77a
commit
df915f8a98
Notes:
sideshowbarker
2024-07-17 05:41:34 +09:00
Author: https://github.com/trflynn89
Commit: df915f8a98
Pull-request: https://github.com/SerenityOS/serenity/pull/20972
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue