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

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
parent d60e8c9df5
commit 33b40eaeed
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);
}
}