mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +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
|
@ -209,7 +209,7 @@ void Call::execute(Bytecode::Interpreter& interpreter) const
|
|||
if (m_type == CallType::Call)
|
||||
return_value = interpreter.vm().call(function, this_value, move(argument_values));
|
||||
else
|
||||
return_value = interpreter.vm().construct(function, function, move(argument_values), interpreter.global_object());
|
||||
return_value = interpreter.vm().construct(function, function, move(argument_values));
|
||||
}
|
||||
|
||||
interpreter.accumulator() = return_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue