Module

js.lib.webassembly.Module (extern class)

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 Members

customSections(module: Module, sectionName: String): Array<js.lib.ArrayBuffer>

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

Name Type
module Module
sectionName String
Returns
Array<js.lib.ArrayBuffer>

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

Name Type
module Module
Returns
Array<ModuleExportDescriptor>

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

Name Type
module Module
Returns
Array<ModuleImportDescriptor>

Instance Members

new(bufferSource: js.lib.BufferSource): Void
Name Type
bufferSource js.lib.BufferSource