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