rem: var from2       = from; var to2         = to; var returnArray = []; var i;  if (from2 < 0) from2 = a.length + from; if (to2 < 0)   to2   = a.length + to;  if ((to2 > from2)&&(to2 > 0)&&(from2 < a.length)) { if (from2 < 0)        from2 = 0; if (to2 > a.length) to2 = a.length;  for (i = from2; i < to2; ++i) returnArray.push(a[i]); } return returnArray; 
add: var from2       = from; var to2         = to; var returnArray = []; var i;  if (from2 < 0) from2 = a.length + from; if (to2 < 0)   to2   = a.length + to;  if ((to2 > from2)&&(to2 > 0)&&(from2 < a.length)) { if (from2 < 0)        from2 = 0; if (to2 > a.length) to2 = a.length;  for (i = from2; i < to2; ++i) returnArray.push(a[i]); } return returnArray; 
context: function mySlice(a, from, to){    var from2       = from;    var to2         = to;    var returnArray = [];    var i;	    if (from2 < 0) from2 = a.length + from;    if (to2 < 0)   to2   = a.length + to;	    if ((to2 > from2)&&(to2 > 0)&&(from2 < a.length))    {	if (from2 < 0)        from2 = 0;	if (to2 > a.length) to2 = a.length;		for (i = from2; i < to2; ++i) returnArray.push(a[i]);    }    return returnArray;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/3703c3c05f398a63e55992f7687ef65273b26d6a/slice.js/buggy/js/tests/js1_2/Array/slice.js