Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / closures / bug497015-1.js
1 actual = '';
2 expected = ',0,0,8888,0,0,8888,0,0,/x/,0,0,';
3
4 for each(let a in ['', 8888, 8888, /x/]) {
5     '';
6     for each(e in ['', false, '']) {
7         (function(e) {
8             for each(let c in ['']) {
9                 appendToActual(a);
10             }
11         })();
12         for (let aa = 0; aa < 1; ++aa) {
13             a = aa;
14         }
15     }
16 }
17
18
19 assertEq(actual, expected)