(p4, request3, responseObject, error)
| 59977 | cacheState |
| 59978 | ); |
| 59979 | } |
| 59980 | function markResourceTiming(timingInfo, originalURL, initiatorType, globalThis2, cacheState) { |
| 59981 | if (nodeMajor > 18 || nodeMajor === 18 && nodeMinor >= 2) { |
| 59982 | performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis2, cacheState); |
| 59983 | } |
| 59984 | } |
| 59985 | function abortFetch(p4, request3, responseObject, error) { |
| 59986 | if (!error) { |
| 59987 | error = new DOMException3("The operation was aborted.", "AbortError"); |
| 59988 | } |
| 59989 | p4.reject(error); |
| 59990 | if (request3.body != null && isReadable(request3.body?.stream)) { |
| 59991 | request3.body.stream.cancel(error).catch((err) => { |
| 59992 | if (err.code === "ERR_INVALID_STATE") { |
| 59993 | return; |
| 59994 | } |
| 59995 | throw err; |
| 59996 | }); |
| 59997 | } |
| 59998 | if (responseObject == null) { |
| 59999 | return; |
| 60000 | } |
| 60001 | const response = responseObject[kState]; |
| 60002 | if (response.body != null && isReadable(response.body?.stream)) { |
| 60003 | response.body.stream.cancel(error).catch((err) => { |
| 60004 | if (err.code === "ERR_INVALID_STATE") { |
| 60005 | return; |
| 60006 | } |
| 60007 | throw err; |
no test coverage detected
searching dependent graphs…