blob: 04fd5a791eb574bdbe412e8751c3b1cfa4226ca7 [file] [log] [blame] [edit]
function foo() {
"foo".replace(/f/g, "");
return "foo".replace(/f/g, 42);
}
noInline(foo);
let result;
for (let i = 0; i < testLoopCount; i++) {
result = foo();
if (result !== "42oo")
throw new Error("Error: bad result: " + result);
}