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

Function __awaiter4

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

Source from the content-addressed store, hash-verified

20048 return value instanceof P ? value : new P(function(resolve2) {
20049 resolve2(value);
20050 });
20051 }
20052 return new (P || (P = Promise))(function(resolve2, reject) {
20053 function fulfilled(value) {
20054 try {
20055 step(generator.next(value));
20056 } catch (e) {
20057 reject(e);
20058 }
20059 }
20060 function rejected(value) {
20061 try {
20062 step(generator["throw"](value));
20063 } catch (e) {
20064 reject(e);
20065 }
20066 }
20067 function step(result) {
20068 result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
20069 }
20070 step((generator = generator.apply(thisArg, _arguments || [])).next());
20071 });
20072 };
20073 var { chmod, copyFile, lstat, mkdir, open, readdir, rename, rm, rmdir, stat, symlink, unlink } = fs2.promises;
20074 var IS_WINDOWS = process.platform === "win32";
20075 var READONLY = fs2.constants.O_RDONLY;
20076 function exists(fsPath) {
20077 return __awaiter2(this, void 0, void 0, function* () {
20078 try {
20079 yield stat(fsPath);

Callers 1

execMethod · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected