WASI

@JSImport("wasi", "WASI") @native @JSType class WASI() extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
class WASI

Value members

Constructors

def this(options: WASIOptions)

Concrete methods

def initialize(instance: Object): Unit

Attempt to initialize instance as a WASI reactor by invoking its _initialize() export, if it is present. If instance contains a _start() export, then an exception is thrown.

Attempt to initialize instance as a WASI reactor by invoking its _initialize() export, if it is present. If instance contains a _start() export, then an exception is thrown.

start() requires that instance exports a WebAssembly.Memory named memory. If instance does not have a memory export an exception is thrown.

If initialize() is called more than once, an exception is thrown.

def start(instance: Object): Unit

Attempt to begin execution of instance by invoking its _start() export. If instance does not contain a _start() export, then start() attempts to invoke the __wasi_unstable_reactor_start() export. If neither of those exports is present on instance, then start() does nothing.

Attempt to begin execution of instance by invoking its _start() export. If instance does not contain a _start() export, then start() attempts to invoke the __wasi_unstable_reactor_start() export. If neither of those exports is present on instance, then start() does nothing.

start() requires that instance exports a 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.

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

val wasiImport: Dict[Any]

Is an object that implements the WASI system call API. This object should be passed as the wasi_snapshot_preview1 import during the instantiation of a WebAssembly.Instance.

Is an object that implements the WASI system call API. This object should be passed as the wasi_snapshot_preview1 import during the instantiation of a WebAssembly.Instance.