For WASM modules containing commands, we currently use the properties callMain, ENV, FS and getEnvStrings. callMain is always required as otherwise we can't call the command, but the others are optional and are only required for commands that access the filesystem (FS) or get/set environment variables (ENV, getEnvStrings). The PR checks for the existence of these properties before using them, throws an error if callMain is missing but otherwise continues if any of the others are missing.
For WASM modules containing commands, we currently use the properties
callMain
,ENV
,FS
andgetEnvStrings
.callMain
is always required as otherwise we can't call the command, but the others are optional and are only required for commands that access the filesystem (FS
) or get/set environment variables (ENV
,getEnvStrings
). The PR checks for the existence of these properties before using them, throws an error ifcallMain
is missing but otherwise continues if any of the others are missing.