Ensure _.spread doesn’t include arguments after those spread. [closes #2825]

This commit is contained in:
John-David Dalton
2016-11-15 08:34:41 -08:00
parent eb4861c3cd
commit 4cb7bea97d
4 changed files with 45 additions and 15 deletions

View File

@@ -10853,9 +10853,6 @@
if (array) {
arrayPush(otherArgs, array);
}
if (start != lastIndex) {
arrayPush(otherArgs, castSlice(args, start + 1));
}
return apply(func, this, otherArgs);
});
}