mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibJS: Mark entire private environment chains during GC
This commit is contained in:
parent
4790f9a628
commit
f25899ca34
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ public:
|
|||
|
||||
private:
|
||||
virtual char const* class_name() const override { return "PrivateEnvironment"; }
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
auto find_private_name(FlyString const& description) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue