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:
parent
d8269c343c
commit
77c1957961
3 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue