Skip to content

Function: inheritedSpawnEnv()

@termwright/driver/experimental


@termwright/driver/experimental / inheritedSpawnEnv

inheritedSpawnEnv(): Record<string, string>

Defined in: session.ts:3183

The smallest environment a child can actually start in on this platform.

Spawning with just PATH reads as admirably minimal and is fine on POSIX, but on Windows a Node child without SystemRoot aborts inside CSPRNG initialization with exit code 134 before running a line of code — no error, no output, just a number that looks like the program failed. Anywhere that spawns a helper process should take this instead of writing its own list.

Record<string, string>