summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug658240.js
blob: 033f2fbdab67d0ad181b5372649c681845adee91 (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    var x = 0;
    for(var i=0; i<5; i++) {
        (function() {
          var q = parseFloat("2");
          x += q;
        })();
    }
    return x;
}
assertEq(f(), 10);