mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Add the WebAssembly.Instance constructor
This commit is contained in:
parent
de4cbc8f08
commit
8acc8339d1
Notes:
sideshowbarker
2024-07-18 11:08:49 +09:00
Author: https://github.com/alimpfard
Commit: 8acc8339d1
Pull-request: https://github.com/SerenityOS/serenity/pull/8358
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/linusg
6 changed files with 173 additions and 50 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue