mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
LibJS: Visit GC allocated members of ModuleEnvironment
This commit is contained in:
committed by
Andreas Kling
parent
a4ccdce011
commit
93464d4e41
@@ -126,4 +126,11 @@ Optional<ModuleEnvironment::BindingAndIndex> ModuleEnvironment::find_binding_and
|
||||
return DeclarativeEnvironment::find_binding_and_index(name);
|
||||
}
|
||||
|
||||
void ModuleEnvironment::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
for (auto& indirect_binding : m_indirect_bindings)
|
||||
visitor.visit(indirect_binding.module);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user