diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-11-27 19:54:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 19:54:01 -0500 |
commit | d4ef471744650e031fdc0b956e51e55f0f365203 (patch) | |
tree | d94fb8cbf2027af4bfc6fc4684ba66b3d1373d8b /ext/node/polyfills/internal/child_process.ts | |
parent | d65a297943b57f6492909041aadf72323f503f09 (diff) |
fix(node): `spawnSync`'s `status` was incorrect (#21359)
The exit code wasn't hooked up properly.
Diffstat (limited to 'ext/node/polyfills/internal/child_process.ts')
-rw-r--r-- | ext/node/polyfills/internal/child_process.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/child_process.ts b/ext/node/polyfills/internal/child_process.ts index 1c9aced19..04773a8b7 100644 --- a/ext/node/polyfills/internal/child_process.ts +++ b/ext/node/polyfills/internal/child_process.ts @@ -855,7 +855,7 @@ export function spawnSync( windowsRawArguments: windowsVerbatimArguments, }).outputSync(); - const status = output.signal ? null : 0; + const status = output.signal ? null : output.code; let stdout = parseSpawnSyncOutputStreams(output, "stdout"); let stderr = parseSpawnSyncOutputStreams(output, "stderr"); |