LibJS+LibWeb: Use the unified Visitor for Variant-holding members

This commit is contained in:
Luke Wilde 2026-04-14 18:03:06 +01:00 committed by Shannon Booth
parent 369ed74bd1
commit de35994fc2
Notes: github-actions[bot] 2026-05-15 06:52:30 +00:00
19 changed files with 26 additions and 102 deletions

View file

@ -318,9 +318,7 @@ WebIDL::Promise* ModuleScript::run(PreventErrorReporting prevent_error_reporting
void ModuleScript::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
m_record.visit(
[&](Empty) {},
[&](auto record) { visitor.visit(record); });
visitor.visit(m_record);
}
}