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

Function processBody

github-actions/browserstack/set-browserstack-env.js:14167–14174  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

14165 }
14166 var markResourceTiming = performance.markResourceTiming;
14167 function abortFetch(p, request, responseObject, error) {
14168 var _a, _b;
14169 if (p) {
14170 p.reject(error);
14171 }
14172 if (request.body != null && isReadable((_a = request.body) == null ? void 0 : _a.stream)) {
14173 request.body.stream.cancel(error).catch((err) => {
14174 if (err.code === "ERR_INVALID_STATE") {
14175 return;
14176 }
14177 throw err;

Callers

nothing calls this directly

Calls 4

bytesMatchFunction · 0.70
processBodyErrorFunction · 0.70
safelyExtractBodyFunction · 0.70
fetchFinaleFunction · 0.70

Tested by

no test coverage detected