(err: Error)
| 417 | } |
| 418 | }; |
| 419 | const onError = (err: Error) => { |
| 420 | cleanup(); |
| 421 | reject(new Error(`Failed to start system grep: ${err.message}`)); |
| 422 | }; |
| 423 | const onClose = (code: number | null) => { |
| 424 | const stdoutData = Buffer.concat(stdoutChunks).toString('utf8'); |
| 425 | const stderrData = Buffer.concat(stderrChunks) |