From df3ca5c7c8dde92cf2e6fee5c5c1ae5a876c61cf Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 6 Dec 2014 14:36:23 -0800 Subject: [PATCH] Fix `_.ary` unit test fail in old IE. --- lodash.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 2ba87d7cc..7215ef70f 100644 --- a/lodash.js +++ b/lodash.js @@ -3450,9 +3450,11 @@ // Append argument positions. value = source[7]; if (value) { - value = baseSlice(value); - push.apply(value, data[7]); - data[7] = value; + argPos = data[7]; + value = data[7] = baseSlice(value); + if (argPos) { + push.apply(value, argPos); + } } // Use source `arity` if one is not provided. if (data[8] == null) {