rem: f = flags[j]; status = getStatus(s, f); actual = cnFAILURE; expect = cnSUCCESS;  try {  eval('obj = new RegExp(s, f);'); } catch(e) {  if (e instanceof SyntaxError) actual = cnSUCCESS; }  reportCompare(expect, actual, status); 
add:  eval('obj = new RegExp(s, f);'); } catch(e) {  if (e instanceof SyntaxError) actual = cnSUCCESS; 
context: function testIllegalRegExps(patterns, flags){  for (i in patterns)    {      s = patterns[i];        for (j in flags)      {        f = flags[j];        status = getStatus(s, f);        actual = cnFAILURE;        expect = cnSUCCESS;          try         {          // This should cause an exception if either s or f is illegal -                   eval('obj = new RegExp(s, f);');          }          catch(e)         {          // We expect to get a SyntaxError - test for this:          if (e instanceof SyntaxError)            actual = cnSUCCESS;        }                reportCompare(expect, actual, status);      }    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/3703c3c05f398a63e55992f7687ef65273b26d6a/regress-57631.js/clean/js/tests/ecma_3/RegExp/regress-57631.js