blob: 3b21bd5ef38c2f4483300debe3f34e5a04426b75 [file] [log] [blame]
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);
}