summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1653972.js
blob: 953bb0077f03ad665d7811e97388e46b5c04c277 (plain)
1
2
3
4
5
6
7
8
9
10
11
function maybeSetLength(arr, b) {
    if (b) {
        arr.length = 0x8000_1111;
    }
}
var arr = [];
for (var i = 0; i < 1600; i++) {
    maybeSetLength(arr, i > 1500);
    arr.push(2);
}
assertEq(arr.length, 0x8000_1112);