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

Function isError

lib/internal/util.js:99–104  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

97}
98
99function isError(e) {
100 // An error could be an instance of Error while not being a native error
101 // or could be from a different realm and not be instance of Error but still
102 // be a native error.
103 return isNativeError(e) || FunctionPrototypeSymbolHasInstance(Error, e);
104}
105
106// Keep a list of deprecation codes that have been warned on so we only warn on
107// each one once.

Callers 12

decorateErrorStackFunction · 0.70
_handleErrorMethod · 0.50
assert.jsFile · 0.50
expectedExceptionFunction · 0.50
jsToYamlFunction · 0.50
wrapErrorFunction · 0.50
constructorMethod · 0.50
innerFailFunction · 0.50
copyErrorFunction · 0.50
objectComparisonStartFunction · 0.50
formatRawFunction · 0.50
getStackFramesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…