summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1687672.js
blob: e5d1a746f38d7a09cc7888b2634685a8a070bd1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| --no-threads; --baseline-warmup-threshold=1; --ion-warmup-threshold=0

var input = ["", 0, "", "", "", "", "", "", "", "", "", "", "", "", {}, {}, ""];

for (var i = 0; i < 10; i++) {
    function sum_indexing(x,i) {
	if (i == x.length) {
	    return 0;
	} else {
	    return x[i] + sum_indexing(x, i+1);
	}
    }
    sum_indexing(input, 0);
}