1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

LibJS: Mark entire private environment chains during GC

This commit is contained in:
Andreas Kling 2021-12-08 09:58:19 +01:00
parent 4790f9a628
commit f25899ca34
2 changed files with 7 additions and 0 deletions

View file

@ -45,4 +45,10 @@ bool PrivateName::operator==(PrivateName const& rhs) const
return unique_id == rhs.unique_id && description == rhs.description;
}
void PrivateEnvironment::visit_edges(Visitor& visitor)
{
Cell::visit_edges(visitor);
visitor.visit(m_outer_environment);
}
}