1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibJS: Create Console using a Realm instead of a VM

This commit is contained in:
Sam Atkins 2022-09-21 13:59:08 +01:00 committed by Sam Atkins
parent 7a2da4cabf
commit 69dd158f91
3 changed files with 22 additions and 20 deletions

View file

@ -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))
{
}