summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/bug1211962.js
blob: 6803888e362bcb5977e64ea279a6b64427fe5ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| slow; skip-if: 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);