MCPcopy Create free account
hub / github.com/angular/dev-infra / __awaiter6

Function __awaiter6

github-actions/browserstack/set-browserstack-env.js:20568–20594  ·  view source on GitHub ↗
(thisArg, _arguments, P, generator)

Source from the content-addressed store, hash-verified

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 }));

Callers 4

getWindowsInfoFunction · 0.70
getMacOsInfoFunction · 0.70
getLinuxInfoFunction · 0.70
getDetailsFunction · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected