summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-821551.js
blob: 8d13799bfe191e5859993dbf4578432e1177b9a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function g() {
    z = newGlobal('');
    return function(code) {
        evalcx(code, z)
    }
}
f = g();
f("\
    options('strict_mode');\
    for (var x = 0; x < 1; ++x) {\
        a = x;\
    }\
    options('strict_mode');\
");
f("a in eval");