Commit 914b9a8
committed
fix(qa-lab): guard stream listeners against possibly-null child stdio
The attachGatewayChildStreamErrorHandlers helper called
`child.stdout.on("error", ...)` directly, but `node:child_process`
types `child.stdout` as `Readable | null`. PR-head check-prod-types,
check-test-types, and check-additional-extension-package-boundary
all failed with TS18047 ('child.stdout' is possibly 'null').
Add the existing `?.` chain so the listener only attaches when the
pipe is present; this matches the production stdio shape used at
the spawn site (`["ignore", "pipe", "pipe"]`, which guarantees the
pipes exist at runtime).
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 148f3fd commit 914b9a8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
420 | | - | |
| 419 | + | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
0 commit comments