summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/nonEmptyStack2.js
blob: fb839424573ffa4cb57b5524a0c187d2af07a05e (plain)
1
2
3
4
5
6
7
8
9
10
function nonEmptyStack2()
{
  var a = 0;
  for (var c in {a:1, b:2, c:3}) {
    for (var i = 0; i < 10; i++)
      a += i;
  }
  return String(a);
}
assertEq(nonEmptyStack2(), "135");