2 'Tests to make sure we do not gc the constants contained by functions defined inside eval code. To pass we need to not crash.'
8 GCController
.collect();
10 for (var i
= 0; i
< 10000; ++i
) // Allocate a sufficient number of objects to force a GC.
14 evalStringTest
= "'test'";
15 evalString
= "function f() { shouldBe(\"'test'\", evalStringTest) }; f()";
22 // Scribble all over the registerfile and c stacks
24 a
*=({}*{}+{}*{})*({}*{}+{}*{})+({}*{}+{}*{});
25 [[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]]];
28 a
*=({}*{}+{}*{})*({}*{}+{}*{})+({}*{}+{}*{});
29 [[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]]];
32 a
*=({}*{}+{}*{})*({}*{}+{}*{})+({}*{}+{}*{});
33 [[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]],[[1,2,3],[1,2,3],[1,2,3]]];