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