summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug847412.js
blob: ce9816d40a92996cc271e3f13715a317a950c12e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

var gTestcases = new Array();
var gTc = gTestcases.length;
function TestCase( a) {
  this.actual = a;
  gTestcases[gTc++] = this;
}
function test() {
  for ( gTc=0; gTc < gTestcases.length; gTc++ ) {
	gTestcases[gTc].actual.toString()
  }
}
function testOverwritingSparseHole() {
  for (var i = 0; i < 50; i++)
    new TestCase(eval("VAR1 = 0; VAR2 = -1; VAR1 %= VAR2; VAR1"));
}
testOverwritingSparseHole();
test();
this.toSource();