OptionalcwdOptionalenvOptionalgidOptionalmaxLimit heap growth to protect thread channel pages
OptionalonCalled after the process has been created and started. When this is set and no stdin buffer is supplied, stdin remains open for appendStdinData().
OptionalprogramOptional pre-compiled module for the supplied program bytes.
OptionalptyOptionalptyInitial PTY winsize. Applied before the wasm program starts so the first TIOCGWINSZ returns the correct cols/rows.
OptionalptyOptionalstdinFinite stdin buffer. If omitted for a non-PTY spawn without onStarted, stdin defaults to an immediate EOF.
OptionaluidInitial real/effective user ID for the process.
Initial real/effective group ID for the process.