summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug-1271507.js
blob: c9f16fd30ce1aff4022894e98d56fcfa63e1b243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| allow-oom
if (typeof oomAfterAllocations != "function")
  quit();

lfcode = new Array();
oomAfterAllocations(100);
loadFile(file);
lfGlobal = newGlobal()
for (lfLocal in this)
  if (!(lfLocal in lfGlobal))
    lfGlobal[lfLocal] = this[lfLocal]
offThreadCompileScript(lfVarx)
lfGlobal.runOffThreadScript()