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

Function makeNetworkError

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

Source from the content-addressed store, hash-verified

12877 initializeResponse(responseObject, init, { body: body[0], type: "application/json" });
12878 return responseObject;
12879 }
12880 // Creates a redirect Response that redirects to url with status status.
12881 static redirect(url, status = 302) {
12882 webidl.argumentLengthCheck(arguments, 1, "Response.redirect");
12883 url = webidl.converters.USVString(url);
12884 status = webidl.converters["unsigned short"](status);
12885 let parsedURL;
12886 try {
12887 parsedURL = new URL(url, relevantRealm.settingsObject.baseUrl);
12888 } catch (err) {
12889 throw new TypeError(`Failed to parse URL from ${url}`, { cause: err });
12890 }

Callers 9

errorMethod · 0.70
mainFetchFunction · 0.70
processBodyErrorFunction · 0.70
schemeFetchFunction · 0.70
httpFetchFunction · 0.70
httpRedirectFetchFunction · 0.70
httpNetworkOrCacheFetchFunction · 0.70
httpNetworkFetchFunction · 0.70

Calls 2

isErrorLikeFunction · 0.70
makeResponseFunction · 0.70

Tested by

no test coverage detected