summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug704134.js
blob: 947a0b13bbb3e2d505850f0614eb6ad7a3b9c138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f(s) {
    eval(s);
    return function() {
        with({}) {};
        return b;
    };
}
var b = 1;
var g1 = f("");
var g2 = f("var b = 2;");
g1('');
assertEq(g2(''), 2);