MCPcopy Index your code
hub / github.com/nodejs/node / isErrorLike

Function isErrorLike

deps/undici/undici.js:5311–5313  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

5309 }
5310 __name(requestBadPort, "requestBadPort");
5311 function isErrorLike(object) {
5312 return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException");
5313 }
5314 __name(isErrorLike, "isErrorLike");
5315 function isValidReasonPhrase(statusText) {
5316 for (let i = 0; i < statusText.length; ++i) {

Callers 2

makeNetworkErrorFunction · 0.70
onAbortedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…