1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibWeb: Make WorkerLocation GC-allocated

This commit is contained in:
Andreas Kling 2022-09-04 14:30:38 +02:00
parent 25daa14a05
commit 9da72cdaba
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);
}
}