(code: number)
| 423 | timer.unref?.() |
| 424 | |
| 425 | const finish = (code: number) => { |
| 426 | if (settled) return |
| 427 | settled = true |
| 428 | clearTimeout(timer) |
| 429 | if (killTimer) clearTimeout(killTimer) |
| 430 | signal?.removeEventListener("abort", onAbort) |
| 431 | resolve({ stdout, stderr, code, timedOut }) |
| 432 | } |
| 433 | |
| 434 | child.stdout.setEncoding("utf8") |
| 435 | child.stderr.setEncoding("utf8") |