1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

LibJS: Remove Console's reliance on GlobalObject

This was not being used for anything meaningful, just store a reference
to the VM directly.
This commit is contained in:
Linus Groh 2022-08-28 14:07:52 +01:00
parent 9d14ed6c14
commit d35f53c344
3 changed files with 21 additions and 36 deletions

View file

@ -85,7 +85,7 @@ namespace JS {
GlobalObject::GlobalObject(Realm& realm)
: Object(GlobalObjectTag::Tag, realm)
, m_console(make<Console>(*this))
, m_console(make<Console>(realm.vm()))
{
}