blob: a0252541904f540bf3ca0f2cdf2002169e32025f [file] [log] [blame]
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);
}