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