Fix failing _.isError test in phantomjs.

This commit is contained in:
John-David Dalton
2016-02-13 02:18:37 -08:00
parent 4a390bca1c
commit 26265c011a

View File

@@ -9770,7 +9770,8 @@
return false;
}
var Ctor = value.constructor;
return typeof Ctor == 'function' && objectToString.call(Ctor.prototype) == errorTag;
return (objectToString.call(value) == errorTag) ||
(typeof Ctor == 'function' && objectToString.call(Ctor.prototype) == errorTag);
}
/**