summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug532568.js
blob: b1cf86c15f3f84c468b22385f26431d84ae68c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var actual = "";

function f() {
  var x = 10;
  
  var g = function(p) {
    for (var i = 0; i < 10; ++i)
      x = p + i;
  }
  
  for (var i = 0; i < 10; ++i) {
    g(100 * i + x);
    actual += x + ',';
  }
}

f();

assertEq(actual, "19,128,337,646,1055,1564,2173,2882,3691,4600,");