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

Function onAborted

github-actions/browserstack/set-browserstack-env.js:14735–14751  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

14733 );
14734 }
14735 if (isAuthenticationFetch) {
14736 }
14737 return response;
14738 });
14739 }
14740 function httpNetworkFetch(fetchParams, includeCredentials = false, forceNewConnection = false) {
14741 return __async(this, null, function* () {
14742 assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
14743 fetchParams.controller.connection = {
14744 abort: null,
14745 destroyed: false,
14746 destroy(err, abort = true) {
14747 var _a2;
14748 if (!this.destroyed) {
14749 this.destroyed = true;
14750 if (abort) {
14751 (_a2 = this.abort) == null ? void 0 : _a2.call(this, err != null ? err : new DOMException("The operation was aborted.", "AbortError"));
14752 }
14753 }
14754 }

Callers

nothing calls this directly

Calls 5

isAbortedFunction · 0.70
isReadableFunction · 0.70
isErrorLikeFunction · 0.70
errorMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected