summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
diff options
context:
space:
mode:
authormjz19910 <matthias291999@gmail.com>2022-01-23 02:12:26 -0700
committerLinus Groh <mail@linusgroh.de>2022-01-23 15:24:45 +0000
commit1ef633472b730ac173a9108226f8ebd7a73dbacf (patch)
tree90f60e5eb1fe8e4eb70b0a906bdd697bf508d32b /Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
parentd436746c952fa904e53413279134266ce965a30e (diff)
downloadserenity-1ef633472b730ac173a9108226f8ebd7a73dbacf.zip
Everywhere: Convert VM::call() to JS::call()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/SetConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/SetConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp b/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
index 7987986d0f..0122de555e 100644
--- a/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
@@ -58,7 +58,7 @@ ThrowCompletionOr<Object*> SetConstructor::construct(FunctionObject& new_target)
return vm.throw_completion<TypeError>(global_object, ErrorType::NotAFunction, "'add' property of Set");
(void)TRY(get_iterator_values(global_object, vm.argument(0), [&](Value iterator_value) -> Optional<Completion> {
- TRY(vm.call(adder.as_function(), Value(set), iterator_value));
+ TRY(JS::call(global_object, adder.as_function(), set, iterator_value));
return {};
}));