1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:08:12 +00:00

LibJS: Use allocate_without_global_object for allocating Shapes

This commit is contained in:
Andreas Kling 2020-10-17 23:47:07 +02:00
parent d8269c343c
commit 77c1957961
3 changed files with 9 additions and 9 deletions

View file

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