blob: d2f539798c5191d2164e0f1adebf9f2f27f01438 [file] [log] [blame]
//@ runDefault("--useBigInt=true", "--useConcurrentJIT=false")
function assert(a) {
if (!a)
throw new Error("Bad assertion");
}
function foo(o) {
let newString = o.toString();
if (typeof o === "bigint")
return newString;
}
noInline(foo);
for (let i = 0; i < 10000; i++) {
assert(foo(3n) === "3");
}