Skip to content

WasmExecOptions

Defined in: packages/runtime/src/wasm/runtime.ts:33

Options for wasmExec.

args: string[]

Defined in: packages/runtime/src/wasm/runtime.ts:41

argv (argv[0] is used for thisProgram; Emscripten’s argv excludes it).


optional env?: Record<string, string>

Defined in: packages/runtime/src/wasm/runtime.ts:43

Additional env vars, merged on top of proc.env and the injected LINES/COLUMNS.


glueFactory: EmscriptenModuleFactory

Defined in: packages/runtime/src/wasm/runtime.ts:37

MODULARIZE’d Emscripten factory that produces the initialized module.


optional preloadPaths?: string[]

Defined in: packages/runtime/src/wasm/runtime.ts:47

Paths to pre-load from proc.fs into Emscripten MEMFS before running.


proc: ProcContext

Defined in: packages/runtime/src/wasm/runtime.ts:39

Fishbowl process context — stdio, fs, cwd, env, argv.


optional ttyBridge?: object

Defined in: packages/runtime/src/wasm/runtime.ts:51

Custom TTY bridge I/O. When provided with ttyMode='raw', installs the Asyncify-aware TTY bridge. If omitted, a default bridge is created that reads from proc.stdin and writes to proc.stdout.

input: WasmTTYInput

Byte source the WASM program reads from.

output: WasmTTYOutput

Byte sink the WASM program writes to.

optional size?: TerminalSize | (() => TerminalSize)

Static terminal size or a size getter (for dynamic resize).


optional ttyMode?: TtyMode

Defined in: packages/runtime/src/wasm/runtime.ts:45

TTY mode; 'raw' enables the Asyncify-aware TTY bridge. Default: 'line'.


wasmBinary: Uint8Array

Defined in: packages/runtime/src/wasm/runtime.ts:35

Raw .wasm bytes. Passed to Emscripten via module.wasmBinary.