diff options
author | mjz19910 <matthias291999@gmail.com> | 2022-01-23 02:12:26 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-23 15:24:45 +0000 |
commit | 1ef633472b730ac173a9108226f8ebd7a73dbacf (patch) | |
tree | 90f60e5eb1fe8e4eb70b0a906bdd697bf508d32b /Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp | |
parent | d436746c952fa904e53413279134266ce965a30e (diff) | |
download | serenity-1ef633472b730ac173a9108226f8ebd7a73dbacf.zip |
Everywhere: Convert VM::call() to JS::call()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp b/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp index 25c6486033..aa2026fe33 100644 --- a/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp +++ b/Userland/Libraries/LibJS/Runtime/FinalizationRegistry.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <LibJS/Runtime/AbstractOperations.h> #include <LibJS/Runtime/FinalizationRegistry.h> namespace JS { @@ -64,7 +65,7 @@ void FinalizationRegistry::cleanup(FunctionObject* callback) for (auto it = m_records.begin(); it != m_records.end(); ++it) { if (it->target != nullptr) continue; - (void)vm.call(*cleanup_callback, js_undefined(), it->held_value); + (void)call(global_object(), *cleanup_callback, js_undefined(), it->held_value); it.remove(m_records); if (vm.exception()) return; |