blob: 8dd02059d9758270fc51c2119c9fd0fbf9722ca5 [file] [log] [blame] [edit]
//@ $skipModes << :lockdown if $buildType == "debug"
function f(x, y, z) {
// comment in the body
const w = 42;
return w + x + y + z;
}
noInline(f);
class C {
// comment in the class
constructor() {
}
method1() {
return "some string";
}
method2() {
return 42;
}
}
function test() {
f.toString();
C.toString();
print.toString();
}
noInline(test);
for (let i = 0; i < 1e7; ++i)
test();
function test2(x, y, z) {
for (let i = 0; i < 1e6; ++i) {
f(x.toString(), y.toString(), z.toString(), x.toString(), y.toString());
}
}
noInline(test2);
test2(f, C, print);