js/src/jit-test/tests/pic/callname-global2.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/pic/callname-global2.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +g0 = function(i) {
     1.5 +    this["g"+(i+1)] = g0;
     1.6 +    return "g"+(i+1);
     1.7 +}
     1.8 +function f() {
     1.9 +    a = eval("g0");
    1.10 +    for(var i=0; i<40; i++) {
    1.11 +        a = this[a(i)];
    1.12 +        if (i === 30) {
    1.13 +            gc();
    1.14 +        }
    1.15 +        assertEq(this["g" + i], g0);
    1.16 +    }
    1.17 +}
    1.18 +f();

mercurial