rem: inspected = JSSpec.util.inspect(o[i]); 
add: var oi = o[i]; inspected = JSSpec.util.inspect(oi); 
context: 	inspect: function(o, dontEscape, emphasisKey){		var sb, inspected;		if(typeof o == 'undefined') return '<span class="undefined_value">undefined</span>';		if(o == null) return '<span class="null_value">null</span>';		if(o._type && o._type == 'String') return '<span class="string_value">"' + (dontEscape ? o : JSSpec.util.escapeHtml(o)) + '"</span>';		if(o._type && o._type == 'Date'){			return '<span class="date_value">"' + o.toString() + '"</span>';		}		if(o._type && o._type == 'Number') return '<span class="number_value">' + (dontEscape ? o : JSSpec.util.escapeHtml(o)) + '</span>';		if(o._type && o._type == 'Boolean') return '<span class="boolean_value">' + o + '</span>';		if(o._type && o._type == 'RegExp') return '<span class="regexp_value">' + JSSpec.util.escapeHtml(o.toString()) + '</span>';		if(JSSpec.util.isDomNode(o)) return JSSpec.util.inspectDomNode(o);		if(o._type && o._type == 'Array' || typeof o.length != 'undefined'){			sb = [];			for(var i = 0; i < o.length; i++){				inspected = JSSpec.util.inspect(o[i]);				sb.push(i == emphasisKey ? ('<strong>' + inspected + '</strong>') : inspected);			}			return '<span class="array_value">[' + sb.join(', ') + ']</span>';		}		// object		sb = [];		for(var key in o){			if(key == 'should') continue;			inspected = JSSpec.util.inspect(key) + ":" + JSSpec.util.inspect(o[key]);			sb.push(key == emphasisKey ? ('<strong>' + inspected + '</strong>') : inspected);		}		return '<span class="object_value">{' + sb.join(', ') + '}</span>';	}
meta: 5237	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5237/d56b8c673b94ffe29dd9513293283e0366ae55d0/JSSpec.js/buggy/Spec/Spec/JSSpec.js