summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1528818.js
blob: 3a49e3f468bf103b41fbef8deb42e0db6a2ff226 (plain)
1
2
3
4
5
6
7
8
9
10
11
function getarg(x) {
    return arguments[x]
}
function f() {
    var r = 0n;
    for (var i=0;i<2000;++i) {
        r += getarg(1+(i & 1), BigInt(0), 1n);
    }
    return r;
}
for (var i=0;i<2;++i) print(f())