(reason: TerminationReason)
| 210 | settled = true; |
| 211 | clearTimers(); |
| 212 | removeAbortHandler(); |
| 213 | if (destroyOpenPipes) destroyPipes(); |
| 214 | const boundedStderr = appendBoundedTail( |
| 215 | stderr, |
| 216 | `${stderr.endsWith('\n') || stderr.length === 0 ? '' : '\n'}${terminationMessage(reason)}`, |
| 217 | maxOutputBytes |
| 218 | ); |
| 219 | resolve({ |
| 220 | stdout, |
| 221 | stderr: boundedStderr.value, |
| 222 | exitCode: EXEC_TIMEOUT_EXIT_CODE, |
| 223 | elapsedMs: Date.now() - startedAt, |
| 224 | terminationReason: reason, |
no test coverage detected