blob: 5a800ff919660f509e596ce74e57952c3c2e58c7 [file] [edit]
function test(start, count) {
let n = start;
for (let i = 0; i < count; i++)
n--;
return n;
}
noInline(test);
const start = 0x123456789abcdef0123456789abcdefn;
let result = 0n;
for (let i = 0; i < 2000; i++)
result = test(start, 2000);
if (result !== start - 2000n)
throw new Error("bad result: " + result);