class WebAssembly.Module
A WebAssembly.Module
object contains stateless WebAssembly code that has already been compiled
by the browser — this can be efficiently shared with Workers, and instantiated multiple times.
Constructors Jump to heading
new
Jump to headingModule(bytes: BufferSource)
Creates a new Module
object.
Static Methods Jump to heading
Jump to headingcustomSections(moduleObject: Module,sectionName: string,): ArrayBuffer[]
Given a Module
and string, returns a copy of the contents of all custom sections in the
module with the given string name.
Jump to headingexports(moduleObject: Module): ModuleExportDescriptor[]
Given a Module
, returns an array containing descriptions of all the declared exports.
Jump to headingimports(moduleObject: Module): ModuleImportDescriptor[]
Given a Module
, returns an array containing descriptions of all the declared imports.