mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Make WorkerLocation GC-allocated
This commit is contained in:
parent
25daa14a05
commit
9da72cdaba
Notes:
sideshowbarker
2024-07-17 07:24:46 +09:00
Author: https://github.com/awesomekling
Commit: 9da72cdaba
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
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