(thisArg, _arguments, P, generator)
| 20566 | state.processExited = true; |
| 20567 | this._debug(`Exit code ${code} received from tool '${this.toolPath}'`); |
| 20568 | state.CheckComplete(); |
| 20569 | }); |
| 20570 | cp.on("close", (code) => { |
| 20571 | state.processExitCode = code; |
| 20572 | state.processExited = true; |
| 20573 | state.processClosed = true; |
| 20574 | this._debug(`STDIO streams have closed for tool '${this.toolPath}'`); |
| 20575 | state.CheckComplete(); |
| 20576 | }); |
| 20577 | state.on("done", (error, exitCode) => { |
| 20578 | if (stdbuffer.length > 0) { |
| 20579 | this.emit("stdline", stdbuffer); |
| 20580 | } |
| 20581 | if (errbuffer.length > 0) { |
| 20582 | this.emit("errline", errbuffer); |
| 20583 | } |
| 20584 | cp.removeAllListeners(); |
| 20585 | if (error) { |
| 20586 | reject(error); |
| 20587 | } else { |
| 20588 | resolve2(exitCode); |
| 20589 | } |
| 20590 | }); |
| 20591 | if (this.options.input) { |
| 20592 | if (!cp.stdin) { |
| 20593 | throw new Error("child process missing stdin"); |
| 20594 | } |
| 20595 | cp.stdin.end(this.options.input); |
| 20596 | } |
| 20597 | })); |
no test coverage detected