mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-08 16:55:01 +00:00
LibWeb: Add missing visit_edges implementation to ModuleNamespaceObject
This commit is contained in:
committed by
Andreas Kling
parent
42853fb980
commit
f357998e81
@@ -228,4 +228,10 @@ ThrowCompletionOr<MarkedVector<Value>> ModuleNamespaceObject::internal_own_prope
|
||||
return exports;
|
||||
}
|
||||
|
||||
void ModuleNamespaceObject::visit_edges(JS::Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_module);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,7 +35,8 @@ public:
|
||||
private:
|
||||
ModuleNamespaceObject(Realm&, Module* module, Vector<DeprecatedFlyString> exports);
|
||||
|
||||
// FIXME: UHHH how do we want to store this to avoid cycles but be safe??
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
GCPtr<Module> m_module; // [[Module]]
|
||||
Vector<DeprecatedFlyString> m_exports; // [[Exports]]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user