spawn: stop reading once maxBuffer is exceeded (
5d76ac6)
Bun now stops the pipe reader immediately when maxBuffer is crossed, instead of only killing the child and continuing to accumulate output while termination is asynchronous. This closes a memory-overrun gap and brings spawnSync behavior in line with Node.js for oversized child output.
Other misc changes
- Updated child-process docs to explain the new maxBuffer behavior
- Added/updated spawn maxBuffer regression coverage