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
Notes: sideshowbarker 2024-07-18 08:59:31 +09:00
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);