WASI.prototype.start - Node documentation
method WASI.prototype.start

Usage in Deno

import { WASI } from "node:wasi";
WASI.prototype.start(instance: object): number

Attempt to begin execution of instance as a WASI command by invoking its _start() export. If instance does not contain a _start() export, or if instance contains an _initialize() export, then an exception is thrown.

start() requires that instance exports a WebAssembly.Memory named memory. If instance does not have a memory export an exception is thrown.

If start() is called more than once, an exception is thrown.

Parameters

instance: object

Return Type

number