blob: de122c9dfd6dd0120aaa726696da47ab88ae8c20 [file] [log] [blame]
//@ runDefault("--useBigInt=true", "--useConcurrentJIT=false")
function assert(input, expected) {
if (input !== expected)
throw new Error("Bad result: " + input);
}
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");
}