Remove support for PhantomJS in arrayLikeKeys (#4081)

This commit is contained in:
Luiz Américo
2018-11-25 13:01:03 -02:00
committed by John-David Dalton
parent 4cae8fb22f
commit 78854835aa

View File

@@ -31,8 +31,7 @@ function arrayLikeKeys(value, inherited) {
!(skipIndexes && (
// Safari 9 has enumerable `arguments.length` in strict mode.
(key == 'length' ||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties.
// Skip index properties.
isIndex(key, length))
))) {
result.push(key)