1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +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

@ -36,7 +36,7 @@ void WebAssemblyInstanceObject::initialize(JS::GlobalObject& global_object)
[&](const Wasm::FunctionAddress& address) {
auto object = cache.function_instances.get(address);
if (!object.has_value()) {
object = create_native_function(address, export_.name(), global_object);
object = create_native_function(global_object, address, export_.name());
cache.function_instances.set(address, *object);
}
m_exports_object->define_direct_property(export_.name(), *object, JS::default_attributes);