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:
parent
25daa14a05
commit
9da72cdaba
7 changed files with 36 additions and 21 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue