summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/callname-with.js
blob: 0a988edbf3bceb6952f2dbb4c3b6f7cb2a9f88f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var res;
var x = 0;

function f() {
    x = {x: 1, f: function() { res = this.x; }};
    with(x) {
        g = function() {
            eval("");
            f();
        }
        g();
    }
}
f();
assertEq(res, 1);