mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibJS: Remove GlobalObject& argument from VM::construct()
We can just get the global object from the constructor function.
This commit is contained in:
parent
f5feb1d2cd
commit
93a07ba962
6 changed files with 9 additions and 8 deletions
|
@ -96,7 +96,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::construct)
|
|||
}
|
||||
new_target = &new_target_value.as_function();
|
||||
}
|
||||
return vm.construct(*target, *new_target, move(arguments), global_object);
|
||||
return vm.construct(*target, *new_target, move(arguments));
|
||||
}
|
||||
|
||||
JS_DEFINE_NATIVE_FUNCTION(ReflectObject::define_property)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue