mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibJS: Move ExecutionContext::context_owner to rare data
This is only used by ExecutionContexts owned by an HTML::ESO.
This commit is contained in:
parent
d234e9ee71
commit
e1344afff3
Notes:
github-actions[bot]
2025-11-01 07:42:08 +00:00
Author: https://github.com/awesomekling
Commit: e1344afff3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6657
3 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue