LibWeb/WebAssembly: Implement Module::customSections(module)

This commit is contained in:
Ali Mohammad Pur 2025-04-22 11:17:48 +02:00 committed by Andrew Kaster
commit a786269687
Notes: github-actions[bot] 2025-04-22 14:44:52 +00:00
3 changed files with 26 additions and 1 deletions

View file

@ -42,6 +42,7 @@ public:
static WebIDL::ExceptionOr<GC::Ref<Module>> construct_impl(JS::Realm&, GC::Root<WebIDL::BufferSource>& bytes);
static WebIDL::ExceptionOr<Vector<ModuleImportDescriptor>> imports(JS::VM&, GC::Ref<Module>);
static WebIDL::ExceptionOr<Vector<ModuleExportDescriptor>> exports(JS::VM&, GC::Ref<Module>);
static WebIDL::ExceptionOr<GC::RootVector<GC::Ref<JS::ArrayBuffer>>> custom_sections(JS::VM&, GC::Ref<Module>, String section_name);
NonnullRefPtr<Detail::CompiledWebAssemblyModule> compiled_module() const { return m_compiled_module; }