blob: 833188aaab54eea79a303eba5b4431decbbd2fbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
if (!('oomTest' in this))
quit();
loadFile(`
T = TypedObject
ObjectStruct = new T.StructType({f: T.Object})
var o = new ObjectStruct
function testGC(p) {
for (; i < 5; i++)
whatever.push;
}
testGC(o)
function writeObject()
o.f = v
writeObject({function() { } })
for (var i ; i < 5 ; ++i)
try {} catch (StringStruct) {}
`);
function loadFile(lfVarx) {
oomTest(Function(lfVarx));
}
|