Skip to content

Commit 4dd12d6

Browse files
committed
Fix a broken test IE8 test PR google#335 by replacing Array.prototype.forEach
with Array.prototype.push.apply. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=103568037
1 parent 5cd40d2 commit 4dd12d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

closure/goog/i18n/numberformat.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,7 @@ goog.i18n.NumberFormat.formatNumberGroupingNonRepeatingDigitsParts_ =
732732
}
733733
}
734734
// Reverse and push onto the remaining parts
735-
rightToLeftParts.reverse().forEach(function(item) {
736-
parts.push(item);
737-
});
735+
parts.push.apply(parts, rightToLeftParts.reverse());
738736

739737
return parts;
740738
};

0 commit comments

Comments
 (0)