Skip to main content
Go to Latest
class default
import { default } from "https://deno.land/std@0.80.0/wasi/snapshot_preview1.ts";

Constructors

new
default(options: ContextOptions)

Properties

args: string[]
env: { [key: string]: string | undefined; }
exitOnReturn: boolean
exports: Record<string, WebAssembly.ImportValue>
fds: FileDescriptor[]

Methods

Attempt to initialize instance as a reactor by invoking its _initialize() export.

If instance contains a _start() export, then an exception is thrown.

The instance must also have a WebAssembly.Memory export named "memory" which will be used as the address space, if it does not an error will be thrown.

Attempt to begin execution of instance as a command by invoking its _start() export.

If the instance does not contain a _start() export, or if the instance contains an _initialize export an error will be thrown.

The instance must also have a WebAssembly.Memory export named "memory" which will be used as the address space, if it does not an error will be thrown.