mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +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
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/IdanHo
Commit: a76cd669b1
Pull-request: https://github.com/SerenityOS/serenity/pull/10728
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