You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have custom error classes in my code that are properly sub-classed from Error using the very convenient es6-error NPM module. Errors generated with these sub-classes are recognised as instances of Error by JavaScript, i.e. myError instanceof Error evaluates to true. However, is.error() evaluates to false. Surely anything that gets true for instanceof Error should be recognised as an error by is.error()?
The text was updated successfully, but these errors were encountered:
I have custom error classes in my code that are properly sub-classed from Error using the very convenient
es6-error
NPM module. Errors generated with these sub-classes are recognised as instances of Error by JavaScript, i.e.myError instanceof Error
evaluates totrue
. However,is.error()
evaluates to false. Surely anything that getstrue
forinstanceof Error
should be recognised as an error byis.error()
?The text was updated successfully, but these errors were encountered: