summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/profiler/bug1211962.js
blob: e18f094ce11811ecc8830565800f6710a0fbb47a (plain)
1
2
3
4
5
6
7
8
9
10
// |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.offThreadCompileScript(script);
lfGlobal.runOffThreadScript();