mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Make module maps GC-allocated
This allows them to mark JS modules, and fixes a crash seen on https://shopify.com/
This commit is contained in:
parent
853ecb8d8e
commit
3811be2f7c
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/awesomekling
Commit: 3811be2f7c
Pull-request: https://github.com/SerenityOS/serenity/pull/18634
4 changed files with 24 additions and 4 deletions
|
@ -60,6 +60,7 @@ struct EnvironmentSettingsObject
|
|||
JS_CELL(EnvironmentSettingsObject, JS::Cell);
|
||||
|
||||
virtual ~EnvironmentSettingsObject() override;
|
||||
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-target-browsing-context
|
||||
JS::ExecutionContext& realm_execution_context();
|
||||
|
@ -124,7 +125,7 @@ protected:
|
|||
|
||||
private:
|
||||
NonnullOwnPtr<JS::ExecutionContext> m_realm_execution_context;
|
||||
ModuleMap m_module_map;
|
||||
JS::GCPtr<ModuleMap> m_module_map;
|
||||
|
||||
EventLoop* m_responsible_event_loop { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue