mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 08:47:35 +00:00
LibJS: Add LoadedModules to Script and CyclicModule
This commit is contained in:
parent
d60e8c9df5
commit
33b40eaeed
4 changed files with 11 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2022, David Tuin <davidot@serenityos.org>
|
||||
* Copyright (c) 2023, networkException <networkexception@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -28,6 +29,8 @@ void CyclicModule::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_top_level_capability);
|
||||
for (auto const& module : m_async_parent_modules)
|
||||
visitor.visit(module);
|
||||
for (auto const& loaded_module : m_loaded_modules)
|
||||
visitor.visit(loaded_module.module);
|
||||
}
|
||||
|
||||
// 16.2.1.5.1 Link ( ), https://tc39.es/ecma262/#sec-moduledeclarationlinking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue