Fixed _.keys in Safari 5.0.5.

This commit is contained in:
John-David Dalton
2014-06-02 09:29:16 -07:00
parent b41826c332
commit b2280b2d72

View File

@@ -6954,8 +6954,9 @@
var Ctor = object && object.constructor,
length = object ? object.length : 0;
if ((typeof length == 'number' && length > 0) ||
(Ctor && object === Ctor.prototype)) {
if ((Ctor && object === Ctor.prototype) ||
(typeof length == 'number' && length > 0) ||
(support.enumPrototypes && typeof object == 'function')) {
return shimKeys(object);
}
return isObject(object) ? nativeKeys(object) : [];