summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/shifted-elements4.js
blob: 59bd836087323c13096bb77589e3bf62a524e357 (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    var arr = [];
    for (var i = 0; i < 2; i++) {
	for (var j = 0; j < 90000; j++)
	    arr.push(j);
	for (var j = 0; j < 90000; j++)
	    assertEq(arr.shift(), j);
	assertEq(arr.length, 0);
    }
}
f();