summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1206677.js
blob: 0052ef0ad1c13936f9a46450bdeaf2c6841a5adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: helperThreadCount() === 0

var lfGlobal = newGlobal();
for (lfLocal in this) {
    if (!(lfLocal in lfGlobal)) {
        lfGlobal[lfLocal] = this[lfLocal];
    }
}
const script = 'oomTest(() => getBacktrace({args: true, locals: "123795", thisprops: true}));';
lfGlobal.offThreadCompileToStencil(script);
var stencil = lfGlobal.finishOffThreadStencil();
lfGlobal.evalStencil(stencil);