1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

LibWeb: Make GlobalObject the first parameter of WebAssembly AOs

Let's be consistent with the rest of LibJS (and the rest of the file).
This commit is contained in:
Idan Horowitz 2021-10-31 15:55:08 +02:00
parent b883652a83
commit a76cd669b1
5 changed files with 18 additions and 18 deletions

View file

@ -66,7 +66,7 @@ JS::ThrowCompletionOr<JS::Object*> WebAssemblyTableConstructor::construct(Functi
if (value_value.is_undefined())
return Wasm::Value(*reference_type, 0ull);
return to_webassembly_value(value_value, *reference_type, global_object);
return to_webassembly_value(global_object, value_value, *reference_type);
}();
if (auto* exception = vm.exception())