MCPcopy Create free account
hub / github.com/sindresorhus/execa / isErrorInstance

Function isErrorInstance

lib/return/final-error.js:35–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33const execaErrorSymbol = Symbol('isExecaError');
34
35export const isErrorInstance = value => Object.prototype.toString.call(value) === '[object Error]';
36
37// We use two different Error classes for async/sync methods since they have slightly different shape and types
38export class ExecaError extends Error {}

Callers 2

parseKillArgumentsFunction · 0.90
isExecaErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected