The exit status of a "LensStudio:Subprocess".spawn or "LensStudio:Subprocess".spawnSync.
const { spawnSync, ExitStatus } = await import('LensStudio:Subprocess'); // Run a real process and inspect its ExitStatus const result = spawnSync('echo', ['hello'], {} as any); console.log('exitCode:', result.exitCode); // ExitStatus enum values console.log('NormalExit:', ExitStatus.NormalExit); console.log('CrashExit:', ExitStatus.CrashExit); Copy
const { spawnSync, ExitStatus } = await import('LensStudio:Subprocess'); // Run a real process and inspect its ExitStatus const result = spawnSync('echo', ['hello'], {} as any); console.log('exitCode:', result.exitCode); // ExitStatus enum values console.log('NormalExit:', ExitStatus.NormalExit); console.log('CrashExit:', ExitStatus.CrashExit);
The process exited due to a crash.
The process exited normally.
The exit status of a "LensStudio:Subprocess".spawn or "LensStudio:Subprocess".spawnSync.
Example