Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
2 /* Make sure ints are converted to doubles as needed at the head of loops which modify those ints. */
4 function bar() {}
6 function foo() {
7 var n = 0.5;
8 n -= 0.5;
9 var iters = 0;
10 for (var i = n;; ) {
11 bar();
12 iters++;
13 if (i == 100)
14 break;
15 i = (i + 1) | 0;
16 }
17 assertEq(iters, 101);
18 }
19 foo();