blob: fa6125f0dbe318551d1429dc91140a5e62e94fa7 [file] [log] [blame]
//@ runBigIntEnabled
function assert(a, e) {
if (a !== e) {
throw new Error("Bad!");
}
}
function branchTest(a) {
if (a)
return a;
else
return false;
}
noInline(branchTest);
for (let i = 0; i < 100000; i++) {
assert(branchTest(10n), 10n);
assert(branchTest(1n), 1n);
assert(branchTest(0n), false);
assert(branchTest(-1n), -1n);
}