WASIOptions

@native @JSType trait WASIOptions extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var args: UndefOr[Array[String]]

An array of strings that the WebAssembly application will see as command line arguments. The first argument is the virtual path to the WASI command itself.

An array of strings that the WebAssembly application will see as command line arguments. The first argument is the virtual path to the WASI command itself.

var env: UndefOr[Object]

An object similar to process.env that the WebAssembly application will see as its environment.

An object similar to process.env that the WebAssembly application will see as its environment.

var preopens: UndefOr[Dict[String]]

This object represents the WebAssembly application's sandbox directory structure. The string keys of preopens are treated as directories within the sandbox. The corresponding values in preopens are the real paths to those directories on the host machine.

This object represents the WebAssembly application's sandbox directory structure. The string keys of preopens are treated as directories within the sandbox. The corresponding values in preopens are the real paths to those directories on the host machine.

var returnOnExit: UndefOr[Boolean]

By default, WASI applications terminate the Node.js process via the __wasi_proc_exit() function. Setting this option to true causes wasi.start() to return the exit code rather than terminate the process.

By default, WASI applications terminate the Node.js process via the __wasi_proc_exit() function. Setting this option to true causes wasi.start() to return the exit code rather than terminate the process.

var stderr: UndefOr[Double]

The file descriptor used as standard error in the WebAssembly application.

The file descriptor used as standard error in the WebAssembly application.

var stdin: UndefOr[Double]

The file descriptor used as standard input in the WebAssembly application.

The file descriptor used as standard input in the WebAssembly application.

var stdout: UndefOr[Double]

The file descriptor used as standard output in the WebAssembly application.

The file descriptor used as standard output in the WebAssembly application.