summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1063488.js
blob: b6ad1a710637cd438280207c0453eadd86d687a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function foo(a, b) {
    var x = b[0];
    for (var i = 0; i < 5; i++) {
	a[i + 1] = 0;
	x += b[i];
    }
    assertEq(x, 2);
}
function bar() {
    for (var i = 0; i < 5; i++) {
	var arr = [1,2,3,4,5,6];
	foo(arr, arr);
    }
}
bar();