mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibJS: Replace GlobalObject with VM in common AOs [Part 18/19]
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:53:28 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/25849f8a6d Pull-request: https://github.com/SerenityOS/serenity/pull/14973 Reviewed-by: https://github.com/davidot ✅
@@ -216,7 +216,7 @@ JS::ThrowCompletionOr<size_t> WebAssemblyObject::instantiate_module(Wasm::Module
|
||||
for (auto& entry : arguments)
|
||||
argument_values.append(to_js_value(global_object, entry));
|
||||
|
||||
auto result_or_error = JS::call(global_object, function, JS::js_undefined(), move(argument_values));
|
||||
auto result_or_error = JS::call(vm, function, JS::js_undefined(), move(argument_values));
|
||||
if (result_or_error.is_error()) {
|
||||
return Wasm::Trap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user