Bug 967467 - Jit-test basic\bug698584.js timesout on Windows XP test machines for debug builds; r=terrence

This commit is contained in:
Dan Minor 2014-02-06 12:37:12 -05:00
parent 9f15cd31a6
commit 7309dee42f

View File

@ -1,22 +0,0 @@
// |jit-test| allow-oom;
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
try
{
const MAX = 10000;
var str = "";
for (var i = 0; i < MAX; ++i) {
/x/.test(str);
str += str + 'xxxxxxxxxxxxxx';
}
}
catch (e)
{
assertEq(""+e === "InternalError: allocation size overflow" ||
""+e === "out of memory", true);
}
/* Don't crash */