summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug732864.js
blob: abcfb8df6a91dd9b6e43c693a83729d97e7c455a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function BigInteger() { }
function bnpCopyTo(g) {
    var this_array = g.array;
    for (var i = g.t; i >= 0; --i)
        ;
    g.t = g.t;
}
function bnpFromString(n) {
    n.t = 0;
    var i = 100;
    while (--i >= 0) {
        n.t++;
    }
}
n = new BigInteger();
n.array = new Array();
bnpFromString(n);

g = new BigInteger();
g.array = new Array();
g.t = 100;
bnpCopyTo(g);