diff --git a/lodash.js b/lodash.js index 86a4450c9..c9e47844c 100644 --- a/lodash.js +++ b/lodash.js @@ -2397,9 +2397,13 @@ for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. isIndex(key, length) ))) { result.push(key);