summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Worker.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-01 20:27:20 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-05 12:42:46 +0200
commit50d951aea24af43256e138d60fe0c48770570919 (patch)
tree24190fc4a4003a6d7d87d282afaea7de58cc6a02 /Userland/Libraries/LibWeb/HTML/Worker.cpp
parent7a6935a2ff85178e1059ca07132a1fff9e55eab2 (diff)
downloadserenity-50d951aea24af43256e138d60fe0c48770570919.zip
LibJS: Let Shape store a Realm instead of a GlobalObject
This is a cautious first step towards being able to create JS objects before a global object has been instantiated.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Worker.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Worker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Worker.cpp b/Userland/Libraries/LibWeb/HTML/Worker.cpp
index 3fef01f121..55cebc5afd 100644
--- a/Userland/Libraries/LibWeb/HTML/Worker.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Worker.cpp
@@ -113,7 +113,7 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
// FIXME: Make and use subclasses of WorkerGlobalScope, however this requires JS::GlobalObject to
// play nicely with the IDL interpreter, to make spec-compliant extensions, which it currently does not.
- m_worker_scope = m_worker_vm->heap().allocate_without_global_object<JS::GlobalObject>();
+ m_worker_scope = m_worker_vm->heap().allocate_without_global_object<JS::GlobalObject>(*m_worker_realm);
m_worker_scope->initialize_global_object();
m_console = adopt_ref(*new WorkerDebugConsoleClient(m_worker_scope->console()));