A WebAssembly Module
object contains stateless WebAssembly code that has already
been compiled by the browser and can be efficiently shared with Workers,
and instantiated multiple times. To instantiate the module, call
the secondary overload of WebAssembly.instantiate()
.
Documentation Module by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static methods
staticcustomSections(module:Module, sectionName:String):Array<ArrayBuffer>
Given a Module
and string, returns a copy of the contents of all custom sections
in the module with the given string name.
staticexports(module:Module):Array<ModuleExportDescriptor>
Given a Module
, returns an array containing descriptions of all the declared exports.
staticimports(module:Module):Array<ModuleImportDescriptor>
Given a Module
, returns an array containing descriptions of all the declared imports.