(err: Error)
| 316 | } |
| 317 | |
| 318 | private failAllPending(err: Error): void { |
| 319 | for (const [, p] of this.pending) { |
| 320 | if (p.timeoutHandle) clearTimeout(p.timeoutHandle); |
| 321 | try { p.reject(err); } catch {} |
| 322 | } |
| 323 | this.pending.clear(); |
| 324 | } |
| 325 | |
| 326 | private expandEnv(env: Record<string, string>): Record<string, string> { |
| 327 | // Delegated to a tested utility — see src/utils/env-expand.ts |