Module class

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

Annotations
  • @JS()
  • @staticInterop

Constructors

Module(Object bytes)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

customSections(Module moduleObject, String sectionName) List<ByteBuffer>
Given a Module and string, returns a copy of the contents of all custom sections in the module with the given string name.
exports(Module moduleObject) List<ModuleExportDescriptor>
Given a Module, returns an array containing descriptions of all the declared exports.
imports(Module moduleObject) List<ModuleImportDescriptor>
Given a Module, returns an array containing descriptions of all the declared imports.