LibJS: Split more native object constructors into construct/initialize

This commit is contained in:
Andreas Kling 2020-06-20 17:11:11 +02:00
commit 06e29fac57
Notes: sideshowbarker 2024-07-19 05:31:40 +09:00
16 changed files with 64 additions and 33 deletions

View file

@ -75,8 +75,12 @@ static void prepare_arguments_list(Interpreter& interpreter, Value value, Marked
}
}
ReflectObject::ReflectObject()
: Object(interpreter().global_object().object_prototype())
ReflectObject::ReflectObject(GlobalObject& global_object)
: Object(global_object.object_prototype())
{
}
void ReflectObject::initialize(Interpreter&, GlobalObject&)
{
u8 attr = Attribute::Writable | Attribute::Configurable;
define_native_function("apply", apply, 3, attr);