~ubuntu-branches/ubuntu/trusty/mozjs24/trusty-proposed

1
2
3
4
5
6
7
8
9
10
11
function testBranchingUnstableLoop() {
  var x = 0;
  for (var i=0; i < 100; ++i) {
    if (i == 51) {
      x += 10.1;
    }
    x++;
  }
  return x;
}
assertEq(testBranchingUnstableLoop(), 110.1);