LibJS: Add LoadedModules to Script and CyclicModule

This commit is contained in:
networkException 2023-10-28 23:56:15 +02:00 committed by Andreas Kling
commit 33b40eaeed
Notes: sideshowbarker 2024-07-17 22:09:47 +09:00
4 changed files with 11 additions and 2 deletions

View file

@ -45,6 +45,8 @@ void Script::visit_edges(Cell::Visitor& visitor)
visitor.visit(m_realm);
if (m_host_defined)
m_host_defined->visit_host_defined_self(visitor);
for (auto const& loaded_module : m_loaded_modules)
visitor.visit(loaded_module.module);
}
}