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