summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/callname-global2.js
blob: 5ee3aa2650f21a42d2afb6b3a52da297d7f43a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
g0 = function(i) {
    this["g"+(i+1)] = g0;
    return "g"+(i+1);
}
function f() {
    a = eval("g0");
    for(var i=0; i<40; i++) {
        a = this[a(i)];
        if (i === 30) {
            gc();
        }
        assertEq(this["g" + i], g0);
    }
}
f();