blob: 0e217e8307e39d4f40c15a2ad0708448266a904f [file] [log] [blame]
//@ runBigIntEnabled
let assert = {
sameValue: function(i, e, m) {
if (i !== e)
throw new Error(m);
}
}
function bigIntDiv(x, y) {
return x / y;
}
noInline(bigIntDiv);
for (let i = 0; i < 10000; i++) {
let r = bigIntDiv(30n, 10n);
assert.sameValue(r, 3n, 30n + " / " + 10n + " = " + r);
}