summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug675251.js
blob: d3f19c3bd5ef522408d1bafffc11126d797eac13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// |jit-test| error:InternalError

// Binary: cache/js-dbg-64-d43c6dddeb2b-linux
// Flags: -m -n
//

function printBugNumber (num) {
  BUGNUMBER = num;
  print ('BUGNUMBER: ' + num);
}
var actual = '';
test();
function test() {
  printBugNumber(test);
  function f(N) {
    for (var i = 0; i != N; ++i) {
      for (var repeat = 0;repeat != 2; ++repeat) {
        var count = BUGNUMBER(repeat);
      }
    }
  }
  var array = [function() { f(10); }, ];
  for (var i = 0; i != array.length; ++i)
    array[i]();
}