summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug627486.js
blob: 1e3877c09d1108a241f200b638115a2244e9f6ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// |jit-test| error: TypeError
g = undefined;
function L() { }

function h() {
    with (h) { }
    for (var i = 0; i < 10; i++)
        g();
}

function f(x) {
    g = x;
}

f(L);
h();
f(L);
f(2);
h();

/* Don't assert/crash. */