LibWeb: Make WorkerLocation GC-allocated

This commit is contained in:
Andreas Kling 2022-09-04 14:30:38 +02:00
commit 9da72cdaba
Notes: sideshowbarker 2024-07-17 07:24:46 +09:00
7 changed files with 36 additions and 21 deletions

View file

@ -117,8 +117,18 @@ String WorkerLocation::hash() const
}
WorkerLocation::WorkerLocation(WorkerGlobalScope& global_scope)
: m_global_scope(global_scope)
: PlatformObject(global_scope.realm())
, m_global_scope(global_scope)
{
// FIXME: Set prototype once we can get to worker scope prototypes.
}
WorkerLocation::~WorkerLocation() = default;
void WorkerLocation::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(m_global_scope);
}
}