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