WASIOptions
Properties
Link copied to clipboard
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.
Link copied to clipboard
By default, when WASI applications call __wasi_proc_exit()
wasi.start()
will return with the exit code specified rather than terminatng the process. Setting this option to false
will cause the Node.js process to exit with the specified exit code instead.
Link copied to clipboard
The version of WASI requested. Currently the only supported versions are 'unstable'
and 'preview1'
. This option is mandatory.