LibWeb: Fix Request::visit_edges to actually visit m_body

This fixes bug introduced in bdd3a16b16
that `m_body` is not visited because `BodyType` variant has
`JS::NonnullGCPtr` instead of `JS::GCPtr`.
This commit is contained in:
Aliaksandr Kalenik 2023-08-20 19:04:01 +02:00 committed by Andreas Kling
parent 769f11f9ae
commit d05be0d504
Notes: sideshowbarker 2024-07-18 01:43:16 +09:00

View File

@ -24,7 +24,7 @@ void Request::visit_edges(JS::Cell::Visitor& visitor)
visitor.visit(m_header_list);
visitor.visit(m_client);
m_body.visit(
[&](JS::GCPtr<Body>& body) { visitor.visit(body); },
[&](JS::NonnullGCPtr<Body>& body) { visitor.visit(body); },
[](auto&) {});
m_reserved_client.visit(
[&](JS::GCPtr<HTML::EnvironmentSettingsObject> const& value) { visitor.visit(value); },