1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +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

@ -28,6 +28,8 @@ public:
virtual void visit_edges(Cell::Visitor&) override;
static Result<size_t, JS::Value> instantiate_module(Wasm::Module const&, JS::VM&, JS::GlobalObject&);
struct CompiledWebAssemblyModule {
explicit CompiledWebAssemblyModule(Wasm::Module&& module)
: module(move(module))