We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b286c commit c22ada1Copy full SHA for c22ada1
lib/internal/util.js
@@ -95,7 +95,7 @@ function isError(e) {
95
// An error could be an instance of Error while not being a native error
96
// or could be from a different realm and not be instance of Error but still
97
// be a native error.
98
- return isNativeError(e) || e instanceof Error;
+ return Error.isError ? Error.isError(e) : isNativeError(e) || e instanceof Error;
99
}
100
101
// Keep a list of deprecation codes that have been warned on so we only warn on
0 commit comments