Serenity Operating System
1/*
2 * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <LibJS/Runtime/Object.h>
10#include <LibWasm/AbstractMachine/AbstractMachine.h>
11#include <LibWeb/Forward.h>
12#include <LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h>
13#include <LibWeb/WebAssembly/WebAssemblyObject.h>
14
15namespace Web::Bindings {
16
17class WebAssemblyTableObject final : public JS::Object {
18 JS_OBJECT(WebAssemblyTableObject, Object);
19
20public:
21 WebAssemblyTableObject(JS::Realm&, Wasm::TableAddress);
22 virtual ~WebAssemblyTableObject() override = default;
23
24 Wasm::TableAddress address() const { return m_address; }
25
26private:
27 Wasm::TableAddress m_address;
28};
29
30}