LibWeb: Add the WebAssembly.Instance constructor

This commit is contained in:
Ali Mohammad Pur
2021-07-01 13:41:15 +04:30
committed by Ali Mohammad Pur
parent de4cbc8f08
commit 8acc8339d1
Notes: sideshowbarker 2024-07-18 11:08:49 +09:00
6 changed files with 173 additions and 50 deletions

View File

@@ -18,7 +18,7 @@
namespace Web::Bindings {
WebAssemblyInstanceObject::WebAssemblyInstanceObject(JS::GlobalObject& global_object, size_t index)
: Object(static_cast<Web::Bindings::WindowObject&>(global_object).ensure_web_prototype<WebAssemblyInstancePrototype>(class_name()))
: Object(static_cast<Web::Bindings::WindowObject&>(global_object).ensure_web_prototype<WebAssemblyInstancePrototype>("WebAssemblyInstancePrototype"))
, m_index(index)
{
}