Skip to main content
WASI.prototype.start - node__wasi.d.ts - Node documentation
method WASI.prototype.start

Usage in Deno

```typescript import { WASI } from "node:node__wasi.d.ts"; ```
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`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/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