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
20567 //
20568 var __awaiter6 = function(thisArg, _arguments, P, generator) {
20569 function adopt(value) {
20570 return value instanceof P ? value : new P(function(resolve2) {
20571 resolve2(value);
20572 });
20573 }
20574 return new (P || (P = Promise))(function(resolve2, reject) {
20575 function fulfilled(value) {
20576 try {
20577 step(generator.next(value));
20578 } catch (e) {
20579 reject(e);
20580 }
20581 }
20582 function rejected(value) {
20583 try {
20584 step(generator["throw"](value));
20585 } catch (e) {
20586 reject(e);
20587 }
20588 }
20589 function step(result) {
20590 result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
20591 }
20592 step((generator = generator.apply(thisArg, _arguments || [])).next());
20593 });
20594 };
20595 var getWindowsInfo = () => __awaiter6(void 0, void 0, void 0, function* () {
20596 const { stdout: version } = yield getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', void 0, {
20597 silent: true

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