diff --git a/es5-shim.js b/es5-shim.js index f8e4d8ce..de0eaab9 100644 --- a/es5-shim.js +++ b/es5-shim.js @@ -369,10 +369,10 @@ if (!Array.prototype.reduceRight) { } while (true); } - for (; i >= 0; i--) { - if (i in self) + do { + if (i in this) result = fun.call(null, result, self[i], i, self); - } + } while (i--); return result; };