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

function f() {
  var e;
  for each (e in ["", {}, "", {}, "", {}, "", {}, ""]) {
      var g = function() { for (var i = 0; i < 5; ++i) appendToActual(e); }
      g();
  }
}

f();


assertEq(actual, expected)