mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +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
|
@ -45,7 +45,7 @@ PromiseCapability new_promise_capability(GlobalObject& global_object, Value cons
|
|||
|
||||
MarkedValueList arguments(vm.heap());
|
||||
arguments.append(executor);
|
||||
auto promise = vm.construct(constructor.as_function(), constructor.as_function(), move(arguments), global_object);
|
||||
auto promise = vm.construct(constructor.as_function(), constructor.as_function(), move(arguments));
|
||||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue