LibJS: Object::initialize() overrides must always call base class

This commit is contained in:
Andreas Kling 2020-06-20 17:49:52 +02:00
commit 2fe4285693
Notes: sideshowbarker 2024-07-19 05:31:27 +09:00
26 changed files with 52 additions and 26 deletions

View file

@ -40,8 +40,9 @@ ObjectConstructor::ObjectConstructor(GlobalObject& global_object)
{
}
void ObjectConstructor::initialize(Interpreter&, GlobalObject& global_object)
void ObjectConstructor::initialize(Interpreter& interpreter, GlobalObject& global_object)
{
NativeFunction::initialize(interpreter, global_object);
define_property("prototype", global_object.object_prototype(), 0);
define_property("length", Value(1), Attribute::Configurable);