summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1666142-1.js
blob: b5bb0aca773559ca48f9fcbde8e9910118636ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |jit-test| --fast-warmup

// This test triggers a GC in CreateThisForIC,
// without using the arguments rectifier.
var records = [];
function Record() {
    return Object.create(null);
}
function init() {
    records.push(new Record());
}
function f() {
    for (var i = 0; i < 100; i++) {
        init();
    }
}

gczeal(14,25);
f();