LibJS: Move ExecutionContext::context_owner to rare data

This is only used by ExecutionContexts owned by an HTML::ESO.
This commit is contained in:
Andreas Kling 2025-10-31 19:36:52 +01:00 committed by Andreas Kling
parent d234e9ee71
commit e1344afff3
Notes: github-actions[bot] 2025-11-01 07:42:08 +00:00
3 changed files with 7 additions and 7 deletions

View file

@ -38,7 +38,7 @@ void Environment::visit_edges(Cell::Visitor& visitor)
EnvironmentSettingsObject::EnvironmentSettingsObject(NonnullOwnPtr<JS::ExecutionContext> realm_execution_context)
: m_realm_execution_context(move(realm_execution_context))
{
m_realm_execution_context->context_owner = this;
m_realm_execution_context->ensure_rare_data()->context_owner = this;
// Register with the responsible event loop so we can perform step 4 of "perform a microtask checkpoint".
responsible_event_loop().register_environment_settings_object({}, *this);