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:
parent
b883652a83
commit
a76cd669b1
5 changed files with 18 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue