AddTestCase( regexp + ".exec(" + pattern +").index", index, regexp.exec(pattern).index ); 
AddTestCase( regexp + ".exec(" + pattern +").index", index, regexp.exec(pattern).index ); 
function AddRegExpCases(regexp, pattern, index, matches_array ) {// prevent a runtime errorif ( regexp.exec(pattern) == null || matches_array == null ) {AddTestCase(regexp + ".exec(" + pattern +")",  matches_array,  regexp.exec(pattern) );return;}AddTestCase(regexp + ".exec(" + pattern +").length",  matches_array.length,  regexp.exec(pattern).length );AddTestCase(regexp + ".exec(" + pattern +").index",  index,  regexp.exec(pattern).index );AddTestCase(regexp + ".exec(" + pattern +").input",  pattern,  regexp.exec(pattern).input );AddTestCase(regexp + ".exec(" + pattern +").toString()",  matches_array.toString(),  regexp.exec(pattern).toString() );/*  var limit = matches_array.length > regexp.exec(pattern).length  ? matches_array.length  : regexp.exec(pattern).length;  for ( var matches = 0; matches < limit; matches++ ) {  AddTestCase(  regexp + ".exec(" + pattern +")[" + matches +"]",  matches_array[matches],  regexp.exec(pattern)[matches] );  }*/}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/3703c3c05f398a63e55992f7687ef65273b26d6a/exec-002.js/buggy/js/tests/ecma_2/RegExp/exec-002.js