mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +00:00
Everywhere: Convert VM::call() to JS::call()
This commit is contained in:
parent
d436746c95
commit
1ef633472b
37 changed files with 160 additions and 157 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue