summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-31 15:55:08 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2021-10-31 18:20:37 +0200
commita76cd669b1ec953728b9d8352cfb73321f84268a (patch)
tree015621a0eda1495bcc20389e266b601a4ea8baa6 /Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp
parentb883652a834663de04cc23bf05c7942d15a240a2 (diff)
downloadserenity-a76cd669b1ec953728b9d8352cfb73321f84268a.zip
LibWeb: Make GlobalObject the first parameter of WebAssembly AOs
Let's be consistent with the rest of LibJS (and the rest of the file).
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp
index 48b79c3532..a6e083f6f9 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObject.cpp
@@ -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);