summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/bug1211962.js
blob: d47d823ff23b2e4770fe8fb4027bb9cdd0b6a950 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| slow; skip-if: !('oomTest' in this) || helperThreadCount() === 0

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