1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

LibJS: Visit GC allocated members of ModuleEnvironment

This commit is contained in:
networkException 2022-10-03 02:27:40 +02:00 committed by Andreas Kling
parent a4ccdce011
commit 93464d4e41
2 changed files with 9 additions and 0 deletions

View file

@ -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);
}
}