Bug 814195 prerequisite: fix tests that do gczeal stuff to not enumerate the window for the first time while gc-ing on every allocation. Otherwise our hang detector kicks in and kills us. rs=jorendorff

This commit is contained in:
Boris Zbarsky 2012-12-01 00:47:24 -05:00
parent 7709510c6a
commit bce83c24d3
2 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,10 @@ function test()
}
else
{
// Enumerate the global once before we turn on gczeal, so we're not
// trying to do all the enumerate hook object creation with a gc on
// every object, because that makes tests time out.
for (z in this);
jit(true);
gczeal(2);

View File

@ -19,6 +19,10 @@ if (typeof gczeal == 'undefined')
}
else
{
// Enumerate the global once before we turn on gczeal, so we're not
// trying to do all the enumerate hook object creation with a gc on
// every object, because that makes tests time out.
for (z in this);
jit(true);
gczeal(2);