1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 20:32:12 +00:00

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
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)
{
}