blob: 6129221bb8f1d90019cb969faedd646e773cffdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| --fast-warmup
function g(x) {
return x + 1;
}
function f() {
for (var i = 0; i < 150; i++) {
assertEq(g("foo"), "foo1");
assertEq(g(1), 2);
if (i === 100) {
gc(this, "shrinking");
}
}
}
f();
|