deno / 1.23.2 / ~ / webassembly.instance.html /

WebAssembly.Instance

A WebAssembly.Instance object is a stateful, executable instance of a WebAssembly.Module. Instance objects contain all the Exported WebAssembly functions that allow calling into WebAssembly code from JavaScript.

MDN

class Instance {
constructor( module: Module , importObject?: Imports);
readonly exports : Exports;
}

Constructors

new Instance( module: Module , importObject?: Imports)

Creates a new Instance object.

Properties

exports : Exports

Returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript. Read-only.