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