Bug 1136490 - Fix unreliable test code to not fail with OOM r=terrence

This commit is contained in:
Tooru Fujisawa 2015-03-02 13:32:08 +00:00
parent c9c10c5d39
commit e471e2432c

View File

@ -1,7 +1,7 @@
try {
gcparam("maxBytes", gcparam("gcBytes"));
eval("\
gczeal(2, 1);\
newGlobal();\
")
} catch (e) {}
// |jit-test| error: out of memory
gcparam("maxBytes", gcparam("gcBytes"));
eval(`
gczeal(2, 1);
newGlobal();
`);