Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / basic / testBranchingUnstableLoopCounter.js
1 function testBranchingUnstableLoopCounter() {
2   var x = 0;
3   for (var i=0; i < 100; ++i) {
4     if (i == 51) {
5       i += 1.1;
6     }
7     x++;
8   }
9   return x;
10 }
11 assertEq(testBranchingUnstableLoopCounter(), 99);