Avoid JIT bug in Safari 8.

This commit is contained in:
John-David Dalton
2014-11-12 21:56:44 -08:00
parent da792cc272
commit 212eea9cf5

View File

@@ -9836,7 +9836,10 @@
* // => also invokes `mage.castSpell(n)` three times
*/
function times(n, iteratee, thisArg) {
n = nativeIsFinite(n = +n) && n > -1 ? n : 0;
n = +n;
if (n < 1 || !nativeIsFinite(n)) {
return [];
}
iteratee = baseCallback(iteratee, thisArg, 1);
var index = -1,