summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-03-15 20:16:22 -0400
committerAndreas Kling <kling@serenityos.org>2023-03-16 13:54:16 +0100
commit2cfcbccdb53deafa036fd9f5ff9a772b9518b725 (patch)
tree0e47f0f11308d6408031e125baa5572f5c3a20db /Userland/Libraries/LibWeb/WebAssembly/Instance.cpp
parentca96f8e364c55f894a9edaa4abb86db0ed5dfb0c (diff)
downloadserenity-2cfcbccdb53deafa036fd9f5ff9a772b9518b725.zip
LibWeb: Port WebAssembly.Table to IDL
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly/Instance.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/Instance.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp b/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp
index 065dc08e33..bdc4828b59 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp
@@ -15,8 +15,8 @@
#include <LibWeb/WebAssembly/Instance.h>
#include <LibWeb/WebAssembly/Memory.h>
#include <LibWeb/WebAssembly/Module.h>
+#include <LibWeb/WebAssembly/Table.h>
#include <LibWeb/WebAssembly/WebAssemblyObject.h>
-#include <LibWeb/WebAssembly/WebAssemblyTableObject.h>
namespace Web::WebAssembly {
@@ -71,9 +71,9 @@ JS::ThrowCompletionOr<void> Instance::initialize(JS::Realm& realm)
return {};
},
[&](Wasm::TableAddress const& address) -> JS::ThrowCompletionOr<void> {
- Optional<JS::GCPtr<Bindings::WebAssemblyTableObject>> object = cache.table_instances.get(address);
+ Optional<JS::GCPtr<Table>> object = cache.table_instances.get(address);
if (!object.has_value()) {
- object = MUST_OR_THROW_OOM(heap().allocate<Web::Bindings::WebAssemblyTableObject>(realm, realm, address));
+ object = MUST_OR_THROW_OOM(heap().allocate<Table>(realm, realm, address));
cache.table_instances.set(address, *object);
}