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

@ -82,7 +82,7 @@ BoundFunction* Function::bind(Value bound_this_value, Vector<Value> arguments)
auto all_bound_arguments = bound_arguments();
all_bound_arguments.append(move(arguments));
return interpreter().heap().allocate<BoundFunction>(global_object(), target_function, bound_this_object, move(all_bound_arguments), computed_length, constructor_prototype);
return interpreter().heap().allocate<BoundFunction>(global_object(), global_object(), target_function, bound_this_object, move(all_bound_arguments), computed_length, constructor_prototype);
}
void Function::visit_children(Visitor& visitor)