(success, object)
| 249 | |
| 250 | // Wrap exit handler to allow fake process to emit an exit event. |
| 251 | var exit = function (success, object) { |
| 252 | // Close dangling pipes. |
| 253 | that.process.stdout && that.process.stdout.emit('end'); |
| 254 | |
| 255 | // Notify of exit and send back return code. |
| 256 | that.process.emit('exit', !success); |
| 257 | that.exit(success, object); |
| 258 | }; |
| 259 | |
| 260 | async(function () { |
| 261 | that.handler.main.call(that, that.command, pipes, exit, this.environment); |
no outgoing calls
no test coverage detected