summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/non-int32-array-length.js
blob: 4213f1991c2f0906ffd6ad1e725780ac4b84fec0 (plain)
1
2
3
4
5
6
7
8
9
10
function f(arr, len) {
    for (var i = 0; i < 2000; i++) {
        assertEq(arr.length, len);
    }
}
var arr = [0];
f(arr, 1);

arr.length = 0xffff_ffff;
f(arr, 0xffff_ffff);