mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibJS: Remove some unnecessary indirection in Object constructors
This commit is contained in:
parent
668e73df8a
commit
976e55e942
Notes:
sideshowbarker
2024-07-19 02:19:28 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/976e55e942a
1 changed files with 2 additions and 2 deletions
|
@ -90,12 +90,12 @@ Object* Object::create_empty(GlobalObject& global_object)
|
|||
Object::Object(GlobalObjectTag)
|
||||
{
|
||||
// This is the global object
|
||||
m_shape = interpreter().heap().allocate<Shape>(static_cast<GlobalObject&>(*this), static_cast<GlobalObject&>(*this));
|
||||
m_shape = heap().allocate<Shape>(static_cast<GlobalObject&>(*this), static_cast<GlobalObject&>(*this));
|
||||
}
|
||||
|
||||
Object::Object(ConstructWithoutPrototypeTag, GlobalObject& global_object)
|
||||
{
|
||||
m_shape = interpreter().heap().allocate<Shape>(global_object, global_object);
|
||||
m_shape = heap().allocate<Shape>(global_object, global_object);
|
||||
}
|
||||
|
||||
Object::Object(Object& prototype)
|
||||
|
|
Loading…
Reference in a new issue