| 12974 | return makeFilteredResponse(response, { |
| 12975 | type: "opaqueredirect", |
| 12976 | status: 0, |
| 12977 | statusText: "", |
| 12978 | headersList: [], |
| 12979 | body: null |
| 12980 | }); |
| 12981 | } else { |
| 12982 | assert(false); |
| 12983 | } |
| 12984 | } |
| 12985 | function makeAppropriateNetworkError(fetchParams, err = null) { |
| 12986 | assert(isCancelled(fetchParams)); |
| 12987 | return isAborted(fetchParams) ? makeNetworkError(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError(Object.assign(new DOMException("Request was cancelled."), { cause: err })); |
| 12988 | } |
| 12989 | function initializeResponse(response, init, body) { |
| 12990 | if (init.status !== null && (init.status < 200 || init.status > 599)) { |