1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:18:14 +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:
Timothy Flynn 2023-09-06 08:11:03 -04:00 committed by Tim Flynn
parent d1a1ace77a
commit df915f8a98

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());