mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +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
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());
|
m_failure_steps(exception.value());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto const& array = static_cast<JS::Uint8Array const&>(chunk.as_object());
|
auto const& array = static_cast<JS::Uint8Array const&>(chunk.as_object());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue