( platform: NodeJS.Platform = process.platform, env: NodeJS.ProcessEnv = process.env )
| 277 | process.on(signal, () => { |
| 278 | killTree(signal); |
| 279 | scheduleForceKill(); |
| 280 | }); |
| 281 | }); |
| 282 | |
| 283 | if (mode === 'pipe-file') { |
| 284 | const [stdinFile, ...args] = rest; |
| 285 | cleanupTarget = stdinFile; |
| 286 | let stdinStream = null; |
| 287 | let stdinStreamClosed = false; |
| 288 | let finishingWithChildResult = false; |
| 289 | |
| 290 | function isBrokenPipeError(error) { |
| 291 | const code = error && error.code; |
| 292 | return code === 'EPIPE' |
| 293 | || code === 'ECONNRESET' |
| 294 | || code === 'ERR_STREAM_DESTROYED' |
| 295 | || code === 'ERR_STREAM_WRITE_AFTER_END'; |
| 296 | } |
| 297 |
no outgoing calls
no test coverage detected