summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/bug497015-2.js
blob: 0395a18f3a1aae2be6526c2921b88f849b7a8b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
actual = '';
expected = 'zzz ,zzz 100,zzz 100,zzz 7777,zzz 100,zzz 100,zzz 8888,zzz 100,zzz 100,zzz /x/,zzz 100,zzz 100,';

//function f() {
for each(let a in ['', 7777, 8888, /x/]) {
    for each(e in ['', false, '']) {
        (function(e) {
            for each(let c in ['']) {
                appendToActual('zzz ' + a);
            }
	})();
        for (let aa = 100; aa < 101; ++aa) {
            a = aa;
        }
    }
}
//}

//f();


assertEq(actual, expected)