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.

MDN

class Module {
constructor(bytes: BufferSource);
static customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
static exports(moduleObject: Module): ModuleExportDescriptor[];
static imports(moduleObject: Module): ModuleImportDescriptor[];
}

§Constructors

§
new Module(bytes: BufferSource)
[src]

Creates a new Module object.

§Static Methods

§
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]
[src]

Given a Module and string, returns a copy of the contents of all custom sections in the module with the given string name.

§
exports(moduleObject: Module): ModuleExportDescriptor[]
[src]

Given a Module, returns an array containing descriptions of all the declared exports.

§
imports(moduleObject: Module): ModuleImportDescriptor[]
[src]

Given a Module, returns an array containing descriptions of all the declared imports.