summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1590176.js
blob: db446d56aeb7d6c3a572ece1acc98d2da3e83d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Create function clones in a separate Zone so that the GC can relazify them.
let g = newGlobal({newCompartment: true});
g.evaluate(`
    function factory() {
        return function() { };
    }
`);

// Delazify, Relazify, Delazify
g.factory()();
finishgc();
startgc(0, 'shrinking');
g.factory()();