mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 04:17:49 +00:00
Remove support for PhantomJS in arrayLikeKeys (#4081)
This commit is contained in:
committed by
John-David Dalton
parent
4cae8fb22f
commit
78854835aa
@@ -31,8 +31,7 @@ function arrayLikeKeys(value, inherited) {
|
|||||||
!(skipIndexes && (
|
!(skipIndexes && (
|
||||||
// Safari 9 has enumerable `arguments.length` in strict mode.
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
||||||
(key == 'length' ||
|
(key == 'length' ||
|
||||||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
// Skip index properties.
|
||||||
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties.
|
|
||||||
isIndex(key, length))
|
isIndex(key, length))
|
||||||
))) {
|
))) {
|
||||||
result.push(key)
|
result.push(key)
|
||||||
|
|||||||
Reference in New Issue
Block a user