rem: movePiece = function(from, to, prom) { 
add: movePiece = function(board, from, to, prom) { 
context: 	movePiece = function(from, to, prom) {		var hist = to.clone()		var tmpPiece = from.piece		var pPiece = null		to.piece = from.piece		to.color = from.color		from.piece = null		from.color = null		// promoting the piece		if (prom.length>0) {			var image = new Image()			pPiece = tmpPiece			switch(prom) {				case 'R':					to.piece = 'rook'					break				case 'B':					to.piece = 'bishop'					break				case 'N':					to.piece = 'knight'					break				case 'Q':					to.piece = 'queen'					break				default:					throw('Unknown promotion')			}		}		return new Array(from, to, hist, pPiece)	}
meta: 5532	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5532/8dc82f970441289f8c19dae01ddbeadc156f15d6/converter.js/buggy/src/converter.js