Remove support for node v0.10 in arrayLikeKeys (#4079)

This commit is contained in:
Luiz Américo
2018-11-25 01:38:47 -02:00
committed by John-David Dalton
parent 3b96b91991
commit 4cae8fb22f

View File

@@ -31,8 +31,6 @@ function arrayLikeKeys(value, inherited) {
!(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))