(response)
| 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); |
no outgoing calls
no test coverage detected