Scope
Activate the byte-identical js/bun/spawn/spawn-stdin-destroy.test.ts corpus and bad-fixture.js.
The upstream regression launches a real child that reads stdin and throws, waits for the early exit, writes and flushes additional stdin, closes the sink, drains stdout, and verifies child.exited resolves to code 1 instead of rejecting with an internal TODO error.
Baseline
The exact file is currently rewritten to one native todo:
- 0 pass
- 0 fail
- 0 unsupported
- 1 todo
Both the test and child fixture are byte-identical to ~/Code/bun.
Acceptance
- Preserve upstream byte identity.
- Run the original test through the real native spawn bridge and home-debug child process.
- Preserve the 80 ms pre-write delay, stdin write/flush/end sequence, stdout async iteration, exit-code assertion, and forced-GC tail.
- Do not synthesize the child result.
- Add a permanent unchanged-corpus regression.
- Pass the exact file and full home_test gate.
- Commit and push as Chris Breuer with no coauthors.
- Link completion to #66.