summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/flat-closure-6.js
blob: 18a0bcb4337fcb8b351cbbeb78767dddc8503d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
actual = '';
expected = 'bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,bundefined,aundefined,b[object Object],aundefined,';

// tests nfixed case of getting slot with let.

for (var q = 0; q < 10; ++q) {
  for each(let b in [(void 0), {}]) {
        appendToActual('a' + ((function() {
            for (var e in ['']) {
                appendToActual('b' + b)
            }
        })()))
    }
}


assertEq(actual, expected)