diff --git a/Libraries/LibJS/Runtime/Object.cpp b/Libraries/LibJS/Runtime/Object.cpp index d3a23ebd33..149bc1cfe0 100644 --- a/Libraries/LibJS/Runtime/Object.cpp +++ b/Libraries/LibJS/Runtime/Object.cpp @@ -90,12 +90,12 @@ Object* Object::create_empty(GlobalObject& global_object) Object::Object(GlobalObjectTag) { // This is the global object - m_shape = interpreter().heap().allocate(static_cast(*this), static_cast(*this)); + m_shape = heap().allocate(static_cast(*this), static_cast(*this)); } Object::Object(ConstructWithoutPrototypeTag, GlobalObject& global_object) { - m_shape = interpreter().heap().allocate(global_object, global_object); + m_shape = heap().allocate(global_object, global_object); } Object::Object(Object& prototype)