()
| 198 | let profileDir = null; |
| 199 | |
| 200 | function cleanup() { |
| 201 | for (const child of children) { |
| 202 | try { |
| 203 | child.kill('SIGTERM'); |
| 204 | } catch { |
| 205 | /* already gone */ |
| 206 | } |
| 207 | } |
| 208 | if (profileDir) rmSync(profileDir, { recursive: true, force: true }); |
| 209 | } |
| 210 | process.on('exit', cleanup); |
| 211 | process.on('SIGINT', () => process.exit(130)); |
| 212 |
nothing calls this directly
no outgoing calls
no test coverage detected