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 _endsWith(str, end) {
20567 return str.endsWith(end);
20568 }
20569 _isCmdFile() {
20570 const upperToolPath = this.toolPath.toUpperCase();
20571 return this._endsWith(upperToolPath, ".CMD") || this._endsWith(upperToolPath, ".BAT");
20572 }
20573 _windowsQuoteCmdArg(arg) {
20574 if (!this._isCmdFile()) {
20575 return this._uvQuoteCmdArg(arg);
20576 }
20577 if (!arg) {
20578 return '""';
20579 }
20580 const cmdSpecialChars = [
20581 " ",
20582 " ",
20583 "&",
20584 "(",
20585 ")",
20586 "[",
20587 "]",
20588 "{",
20589 "}",
20590 "^",
20591 "=",
20592 ";",
20593 "!",
20594 "'",
20595 "+",
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