comparison: js/src/jit-test/tests/jaeger/bug769985.js
js/src/jit-test/tests/jaeger/bug769985.js
- branch
- TOR_BUG_3246
- changeset 7
- 129ffea94266
equal
deleted
inserted
replaced
|
1 |
|
2 /* Make sure ints are converted to doubles as needed at the head of loops which modify those ints. */ |
|
3 |
|
4 function bar() {} |
|
5 |
|
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(); |