mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Everywhere: Convert VM::call() to JS::call()
This commit is contained in:
parent
d436746c95
commit
1ef633472b
Notes:
sideshowbarker
2024-07-17 20:23:01 +09:00
Author: https://github.com/mjz19910
Commit: 1ef633472b
Pull-request: https://github.com/SerenityOS/serenity/pull/12067
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
37 changed files with 160 additions and 157 deletions
|
@ -61,7 +61,7 @@ ThrowCompletionOr<Object*> WeakMapConstructor::construct(FunctionObject& new_tar
|
|||
|
||||
auto key = TRY(iterator_value.as_object().get(0));
|
||||
auto value = TRY(iterator_value.as_object().get(1));
|
||||
TRY(vm.call(adder.as_function(), Value(weak_map), key, value));
|
||||
TRY(JS::call(global_object, adder.as_function(), weak_map, key, value));
|
||||
|
||||
return {};
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue