summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug685321-1.js
blob: 789651fc9302133fbcbcc46d2f26b49237624c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    function g() {
        for (var i = 0; i < 3; i++)
        x = i;
    };
    var [x] = [];
    g();
    assertEq(x, 2);
    print(x);
}
f();