1 2 3 4 5 6 7 8 9
// Bug 1312488 function test(a) { let x = 0; for (let i = 0, len = a.length; i < len; i++) x += a[i]; return x; } assertEq(test([10.1, 10.2, 10.3, 10.4, 10]), 51);