summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1852702.js
blob: c0a5c7f3cab33eed65bee3f3aaedfb1b01ff95c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| --fast-warmup
function main() {
    var f = function(x) {
        x.f = f; 
        var f2 = x.f;
        f2[Symbol.toPrimitive] = null;
        try {
            new f2(0);
        } catch (e) {}
        for (var i = 0; i < 100; i++) { } 
    };
    new f(f);
}
gczeal(2);
for (var i = 0; i < 100; i++) {
    main();
}