blob: ddba6dbfa76173a79ae2c065cbad2187cf860620 [file] [log] [blame]
//@ skip if not $jitTests
//@ runBigIntEnabled
function assert(a) {
if (!a)
throw new Error("Bad assertion");
}
function foo(input) {
let a = "";
return "" + input + "";
}
noInline(foo);
for (let i = 0; i < 10000; i++) {
assert(foo(10n) === "10");
}
assert(numberOfDFGCompiles(foo) === 1);