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:
parent
769f11f9ae
commit
d05be0d504
Notes:
sideshowbarker
2024-07-18 01:43:16 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/d05be0d504 Pull-request: https://github.com/SerenityOS/serenity/pull/20687
1 changed files with 1 additions and 1 deletions
|
@ -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); },
|
||||
|
|
Loading…
Add table
Reference in a new issue