test is testing for a crash. catch exception to prevent erroneous failure, no bug, not part of build.

This commit is contained in:
bob%bclary.com 2005-06-08 03:12:49 +00:00
Родитель 0a4bbd5c98
Коммит 91aa107128
1 изменённых файлов: 16 добавлений и 2 удалений

Просмотреть файл

@ -56,8 +56,22 @@ for (var i = 0; i != N; ++i) {
var str = '['+a.join('][')+']'; // str is [0][1][2]...[<PRINTED N-1>]
var re = new RegExp(str);
try
{
var re = new RegExp(str);
}
catch(e)
{
printStatus('Exception creating RegExp: ' + e);
}
re.exec("");
try
{
re.exec('');
}
catch(e)
{
printStatus('Exception executing RegExp: ' + e);
}
reportCompare(expect, actual, status);