summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/array-length-double.js
blob: f4e0fd210d332ef6e5d6baf46cc3c135c7900d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function getLength(arr) {
    return arr.length;
}
function f() {
    var arr1 = new Array(10);
    var arr2 = new Array(4294967295);

    for (var i=0; i<10; i++) {
	assertEq(getLength(arr1), 10);
	assertEq(getLength(arr2), 4294967295);
    }
}
f();