(error: Error)
| 383 | |
| 384 | let settled = false |
| 385 | const settleFailure = (error: Error) => { |
| 386 | if (settled) { |
| 387 | return |
| 388 | } |
| 389 | settled = true |
| 390 | host.startPromise = null |
| 391 | host.process = null |
| 392 | if (host.role === 'thread') { |
| 393 | forgetHost(host) |
| 394 | } |
| 395 | reject(error) |
| 396 | } |
| 397 | |
| 398 | child.once('spawn', () => { |
| 399 | if (runtimeHostsShuttingDown) { |
no test coverage detected