blob: c666b7aac8925249f2bdc39a3efe6c50dee0709c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
if (!('oomTest' in this) || helperThreadCount() === 0)
quit(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.offThreadCompileScript(script);
lfGlobal.runOffThreadScript();
|