зеркало из https://github.com/mozilla/gecko-dev.git
test is testing for a crash. catch exception to prevent erroneous failure, no bug, not part of build.
This commit is contained in:
Родитель
0a4bbd5c98
Коммит
91aa107128
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче