summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug842425.js
blob: f951787768c749bc540f23414912ebf323d0163a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error: TypeError

function g() {
  var a = [];
  for (var i = 0; i < 10; i++)
    a.push(i, 1.5);
  for (var i = 0; i < 32 ; i++) {
    print(i);
    a[i].m = function() {} 
  }
}
g();