js/src/jit-test/tests/gc/bug-821551.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/gc/bug-821551.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +function g() {
     1.5 +    z = newGlobal('');
     1.6 +    return function(code) {
     1.7 +        evalcx(code, z)
     1.8 +    }
     1.9 +}
    1.10 +f = g();
    1.11 +f("\
    1.12 +    options('strict_mode');\
    1.13 +    for (var x = 0; x < 1; ++x) {\
    1.14 +        a = x;\
    1.15 +    }\
    1.16 +    options('strict_mode');\
    1.17 +");
    1.18 +f("a in eval");
    1.19 +

mercurial