(reason)
| 306 | } |
| 307 | |
| 308 | _failPending(reason) { |
| 309 | while (this.queue.length > 0) { |
| 310 | const q = this.queue.shift(); |
| 311 | clearTimeout(q.timer); |
| 312 | q.resolve({ stdout: '', exitCode: -1, timedOut: false, error: reason }); |
| 313 | } |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | // ─── Module-level singleton (one shell per SmallCode process) ──────────── |