rem: var errors = this['errors']; var extra1 = this['extra']; 
add: var errors = this.errors; var extra1 = this.extra; 
context: function eob_as_array (extra2) {  var errors = this['errors'];  var extra1 = this['extra'];  if (! extra2) extra2 = new Array();  var title = eob_get_val('as_array_title', extra2, extra1, 'Please correct the following items:');  /// if there are heading items then we may end up needing a prefix  var has_headings;  if (title) has_headings = 1;  else {    for (var i = 0; i < errors.length; i ++) {      if (typeof(errors[i]) != 'string') continue;      has_headings = 1;      break;    }  }  var prefix = eob_get_val('as_array_prefix', extra2, extra1, has_headings ? '  ' : '');  /// get the array ready  var arr = new Array();  if (title && title.length) arr[arr.length] = title;  /// add the errors  var found = new Array();  for (var i = 0; i < errors.length; i ++) {    if (typeof(errors[i]) == 'string') {      arr[arr.length] = errors[i];      found = new Array();    } else {      var text = this.get_error_text(errors[i]);      if (found[text]) continue;      found[text] = 1;      arr[arr.length] = prefix + text;    }  }    return arr;}
meta: 5443	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5443/36b6d6336f71148a2949342b6bf1af36a21992c1/validate.js/buggy/lib/CGI/Ex/validate.js