WasmExecOptions
Defined in: packages/runtime/src/wasm/runtime.ts:33
Options for wasmExec.
Properties
Section titled “Properties”args:
string[]
Defined in: packages/runtime/src/wasm/runtime.ts:41
argv (argv[0] is used for thisProgram; Emscripten’s argv excludes it).
optionalenv?: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
Section titled “glueFactory”glueFactory:
EmscriptenModuleFactory
Defined in: packages/runtime/src/wasm/runtime.ts:37
MODULARIZE’d Emscripten factory that produces the initialized module.
preloadPaths?
Section titled “preloadPaths?”
optionalpreloadPaths?: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.
ttyBridge?
Section titled “ttyBridge?”
optionalttyBridge?: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
Section titled “output”output:
WasmTTYOutput
Byte sink the WASM program writes to.
optionalsize?:TerminalSize| (() =>TerminalSize)
Static terminal size or a size getter (for dynamic resize).
ttyMode?
Section titled “ttyMode?”
optionalttyMode?:TtyMode
Defined in: packages/runtime/src/wasm/runtime.ts:45
TTY mode; 'raw' enables the Asyncify-aware TTY bridge. Default: 'line'.
wasmBinary
Section titled “wasmBinary”wasmBinary:
Uint8Array
Defined in: packages/runtime/src/wasm/runtime.ts:35
Raw .wasm bytes. Passed to Emscripten via module.wasmBinary.