mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb: Make WorkerLocation GC-allocated
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user