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

Function isNetworkError

github-actions/browserstack/set-browserstack-env.js:12888–12894  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

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 }
12891 if (!redirectStatusSet.has(status)) {
12892 throw new RangeError(`Invalid status code ${status}`);
12893 }
12894 const responseObject = fromInnerResponse(makeResponse({}), "immutable");
12895 responseObject[kState].status = status;
12896 const value = isomorphicEncode(URLSerializer(parsedURL));
12897 responseObject[kState].headersList.append("location", value, true);

Callers 2

""Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected