Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sindresorhus/execa
/ isExecaError
Function
isExecaError
lib/return/final-error.js:31–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
30
// Unlike `instanceof`, this works across realms
31
export
const
isExecaError = error => isErrorInstance(error) && execaErrorSymbol in error;
32
33
const
execaErrorSymbol = Symbol(
'isExecaError'
);
34
Callers
1
getOriginalMessage
Function · 0.90
Calls
1
isErrorInstance
Function · 0.85
Tested by
no test coverage detected