mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
LibJS: Clarify Object (base class) construction somewhat
Divide the Object constructor into three variants: - The regular one (takes an Object& prototype) - One for use by GlobalObject - One for use by objects without a prototype (e.g ObjectPrototype)
This commit is contained in:
parent
fc4ed8d444
commit
ba641e97d9
33 changed files with 57 additions and 45 deletions
|
@ -37,7 +37,7 @@ Function::Function(Object& prototype)
|
|||
}
|
||||
|
||||
Function::Function(Object& prototype, Value bound_this, Vector<Value> bound_arguments)
|
||||
: Object(&prototype)
|
||||
: Object(prototype)
|
||||
, m_bound_this(bound_this)
|
||||
, m_bound_arguments(move(bound_arguments))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue