mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb: Make module maps GC-allocated
This allows them to mark JS modules, and fixes a crash seen on https://shopify.com/
This commit is contained in:
@@ -8,6 +8,14 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
void ModuleMap::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
for (auto& it : m_values) {
|
||||
visitor.visit(it.value.module_script);
|
||||
}
|
||||
}
|
||||
|
||||
bool ModuleMap::is_fetching(AK::URL const& url, DeprecatedString const& type) const
|
||||
{
|
||||
return is(url, type, EntryType::Fetching);
|
||||
|
||||
Reference in New Issue
Block a user