mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Use allocate_without_global_object for allocating Shapes
This commit is contained in:
@@ -90,12 +90,12 @@ Object* Object::create_empty(GlobalObject& global_object)
|
||||
Object::Object(GlobalObjectTag)
|
||||
{
|
||||
// This is the global object
|
||||
m_shape = heap().allocate<Shape>(static_cast<GlobalObject&>(*this), static_cast<GlobalObject&>(*this));
|
||||
m_shape = heap().allocate_without_global_object<Shape>(static_cast<GlobalObject&>(*this));
|
||||
}
|
||||
|
||||
Object::Object(ConstructWithoutPrototypeTag, GlobalObject& global_object)
|
||||
{
|
||||
m_shape = heap().allocate<Shape>(global_object, global_object);
|
||||
m_shape = heap().allocate_without_global_object<Shape>(global_object);
|
||||
}
|
||||
|
||||
Object::Object(Object& prototype)
|
||||
|
||||
Reference in New Issue
Block a user