mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
LibWeb: Remove remaining WebAssemblyObject data to the namespace file
This commit is contained in:
parent
57646c86ef
commit
8bba53bdff
9 changed files with 384 additions and 417 deletions
|
@ -10,7 +10,7 @@
|
|||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/Bindings/ModulePrototype.h>
|
||||
#include <LibWeb/WebAssembly/Module.h>
|
||||
#include <LibWeb/WebAssembly/WebAssemblyObject.h>
|
||||
#include <LibWeb/WebAssembly/WebAssembly.h>
|
||||
|
||||
namespace Web::WebAssembly {
|
||||
|
||||
|
@ -18,7 +18,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Module>> Module::construct_impl(JS::Realm&
|
|||
{
|
||||
auto& vm = realm.vm();
|
||||
|
||||
auto index = TRY(Bindings::parse_module(vm, bytes.cell()));
|
||||
auto index = TRY(Detail::parse_module(vm, bytes.cell()));
|
||||
return MUST_OR_THROW_OOM(vm.heap().allocate<Module>(realm, realm, index));
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ JS::ThrowCompletionOr<void> Module::initialize(JS::Realm& realm)
|
|||
|
||||
Wasm::Module const& Module::module() const
|
||||
{
|
||||
return Bindings::WebAssemblyObject::s_compiled_modules.at(index())->module;
|
||||
return Detail::s_compiled_modules.at(index())->module;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue