summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/recompile/memory-02.js
blob: 875487abc2dce1fcd64b3be4fa9c9cbcce5e0796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

var g = 10;

function bar(n) {
    return g;
}

function foo(n, v) {
    for (var i = 0; i < n; i++)
	assertEq(bar(i), v);
}

foo(10, 10);

gc();

eval("g = 10.5");

foo(10, 10.5);