summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug718852.js
blob: 845b84cf3f9e1c1f139e7b214a7c3d5d501d4016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| error:ReferenceError

function fannkuch(n) {
   var perm1 = Array(n);
   while (true) {
      if (check < 30){
         for(var i=0; i<n; i++) s += (perm1[i]+1).toString();
         while (i < r) {
            var j = this.abstract + 1;
            perm1[i] = perm1[j];
         }
      }
   }
}
fannkuch(8);