LibWeb+LibWasm: Implement the WebAssembly.Table object

This commit is contained in:
Ali Mohammad Pur 2021-09-04 04:40:57 +04:30 committed by Ali Mohammad Pur
parent d52a26de3f
commit 09dd397160
Notes: sideshowbarker 2024-07-18 04:44:03 +09:00
9 changed files with 433 additions and 1 deletions

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "WebAssemblyTablePrototype.h"
#include <LibWeb/WebAssembly/WebAssemblyTableObject.h>
namespace Web::Bindings {
WebAssemblyTableObject::WebAssemblyTableObject(JS::GlobalObject& global_object, Wasm::TableAddress address)
: Object(static_cast<WindowObject&>(global_object).ensure_web_prototype<WebAssemblyTablePrototype>("WebAssemblyTablePrototype"))
, m_address(address)
{
}
}