The context in which a WASI binary is executed.
This is used for syscalls that get args, environment, use IO and read/write
to files. This gives you programmattic access to the environment that the
WASI binary is executing in.
Notes:
stdin - string is passed as JavaScript string but encoded to UTF-8, if this
ends up longer than maxByteLength it will be truncated.
debug - function injected between wasi and return for debugging
WASIContext
The context in which a WASI binary is executed. This is used for syscalls that get args, environment, use IO and read/write to files. This gives you programmattic access to the environment that the WASI binary is executing in.
Notes:
stdin - string is passed as JavaScript string but encoded to UTF-8, if this ends up longer than maxByteLength it will be truncated.
debug - function injected between wasi and return for debugging