summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-09-21 13:59:08 +0100
committerSam Atkins <atkinssj@gmail.com>2022-09-21 20:03:49 +0100
commit69dd158f91480551a4b7e1205c3fab77c507fc1a (patch)
treee18f835e49559bc7d1a3953f9e48849b4390dcc1 /Userland/Libraries/LibJS/Runtime
parent7a2da4cabf5627941cf1fc6eb7c5fd068fcc75f9 (diff)
downloadserenity-69dd158f91480551a4b7e1205c3fab77c507fc1a.zip
LibJS: Create Console using a Realm instead of a VM
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ConsoleObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ConsoleObject.cpp b/Userland/Libraries/LibJS/Runtime/ConsoleObject.cpp
index f3cb46dea8..1d17f2a7eb 100644
--- a/Userland/Libraries/LibJS/Runtime/ConsoleObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ConsoleObject.cpp
@@ -14,7 +14,7 @@ namespace JS {
ConsoleObject::ConsoleObject(Realm& realm)
: Object(*realm.intrinsics().object_prototype())
- , m_console(make<Console>(realm.vm()))
+ , m_console(make<Console>(realm))
{
}