Class: WASI
Constructors
Constructor
new WASI(
options):WASI
Parameters
options
Returns
WASI
Properties
wasiImport
readonlywasiImport:object
Object to pass to WebAssembly.Instance importObject.
Methods
getImportObject()
getImportObject():
Record<string,object>
Returns import object with the appropriate WASI namespace.
Returns
Record<string, object>
start()
start(
instance):number
Start the WASI instance, running its _start export.
Returns the exit code passed to proc_exit() (or 0 on a clean
return). When returnOnExit is false, the process is terminated
with that code and this function does not return.
Parameters
instance
Instance
Returns
number