summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/recompile/memory-01.js
blob: aa147462124445666446e39e02001c80239ce25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function foo(n) {
    for (var i = 0; i < n; i++) {}
    return i;
}

assertEq(foo(1000), 1000);

gc();

eval("assertEq(foo(1000.5), 1001)");