blob: 0e80addc11e08bcd4a3a74bb1148161153bcb74f [file] [log] [blame]
//@ runBigIntEnabled
function assert(a) {
if (!a)
throw new Error("Bad assertion");
}
function lessThanTest(a, b) {
return a < b;
}
noInline(lessThanTest);
for (let i = 0; i < 100000; i++) {
assert(lessThanTest(3n, 4) === true);
}
for (let i = 0; i < 100000; i++) {
assert(lessThanTest(3n, 4n) === true);
}
for (let i = 0; i < 100000; i++) {
assert(lessThanTest(3n, "4") === true);
}