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