blob: b5d03bd27b86d78f2899d8a13bf3d60afe4f96fe [file] [log] [blame]
//@ runDefault("--useBigInt=true", "--useConcurrentJIT=false")
function assert(a) {
if (!a)
throw new Error("Bad assertion");
}
function foo() {
"use strict";
return typeof this;
}
noInline(foo);
for (let i = 0; i < 10000; i++) {
assert(foo.apply(10n) === "bigint");
}
for (let i = 0; i < 10000; i++) {
assert(foo.apply(300) === "number");
}
assert(numberOfDFGCompiles(foo) > 1);