MCPcopy Create free account
hub / github.com/nodejs/node / error

Method error

deps/undici/src/lib/web/fetch/response.js:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34 // Creates network error Response.
35 static error () {
36 // The static error() method steps are to return the result of creating a
37 // Response object, given a new network error, "immutable", and this’s
38 // relevant Realm.
39 const responseObject = fromInnerResponse(makeNetworkError(), 'immutable')
40
41 return responseObject
42 }
43
44 // https://fetch.spec.whatwg.org/#dom-response-json
45 static json (data, init = undefined) {

Callers 2

abortFetchFunction · 0.45
onAbortedFunction · 0.45

Calls 2

fromInnerResponseFunction · 0.70
makeNetworkErrorFunction · 0.70

Tested by

no test coverage detected