Adjust lazy heuristic to punt if not using shortcut fusion.

This commit is contained in:
jdalton
2015-06-06 15:30:56 -07:00
parent ab981ce15a
commit ba082b74a7
2 changed files with 51 additions and 51 deletions

View File

@@ -1179,7 +1179,7 @@
resIndex = 0,
takeCount = nativeMin(length, this.__takeCount__);
if (!isArr || array.length < LARGE_ARRAY_SIZE || (iterLength < 2 && arrLength == length && takeCount == length)) {
if (!isArr || arrLength < LARGE_ARRAY_SIZE || (arrLength == length && takeCount == length)) {
return baseWrapperValue(isRight ? array.reverse() : array, this.__actions__);
}
var result = [];