mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Fix failing _.isError test in phantomjs.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user