summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/incr-exit.js
blob: 34888b5252707747e84fc721eca480b7763f49d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
actual = '';
expected = 'ddd,';

// Bug 508187
{ let f = function (y) {
    { let ff = function (g) {
        for each(let h in g) {
            if (++y > 5) {
	        appendToActual('ddd')
            }
        }
    };
      ff(['', null, '', false, '', '', null])
    }
};
    f(-1)
}


assertEq(actual, expected)