Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.shared_globals.d.ts>WebAssembly.Instance

A modern runtime for JavaScript and TypeScript.
Go to Latest
class WebAssembly.Instance
import { WebAssembly } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.deno.shared_globals.d.ts";
const { Instance } = WebAssembly;

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

Constructors

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

Creates a new Instance object.

Properties

readonly
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.