Bump to v4.5.1.

This commit is contained in:
John-David Dalton
2016-02-21 20:40:07 -08:00
parent ae51b52aa1
commit 65e5d998b3
29 changed files with 266 additions and 188 deletions

View File

@@ -33,9 +33,8 @@ define(['./isObjectLike'], function(isObjectLike) {
if (!isObjectLike(value)) {
return false;
}
var Ctor = value.constructor;
return (objectToString.call(value) == errorTag) ||
(typeof Ctor == 'function' && objectToString.call(Ctor.prototype) == errorTag);
(typeof value.message == 'string' && typeof value.name == 'string');
}
return isError;