Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: more verbose comment
  • Loading branch information
BridgeAR committed Dec 2, 2018
commit d3460112cd2c292c75780379dcef6b36db3cbdfe
4 changes: 3 additions & 1 deletion lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function removeColors(str) {
}

function isError(e) {
// An error could be an instance of Error while not being a native error.
// An error could be an instance of Error while not being a native error
// or could be from a different realm and not be instance of Error but still
// be a native error.
return isNativeError(e) || e instanceof Error;
Comment thread
BridgeAR marked this conversation as resolved.
}

Expand Down