add:  action.perform();  const act = action; const pile = action.pileWhichMayNeedCardsRevealing || null; const cs = act.revealedCards = pile ? this.getCardsToReveal(pile) : []; for(var i = 0; i != cs.length; ++i) cs[i].setFaceUp(true); act.score += cs.length * this.scoreForRevealing; gScoreDisplay.value = this.score += act.score; 
context:   doo: function(action) {    this.pileWhichLastHadCardRemoved = null; // paranoia    if(this.canRedo) this.actionList = this.actionList.slice(0, this.actionPtr); // clear Redo history    this.actionList[this.actionPtr++] = action;    this.canUndo = true;    this.canRedo = false;    action.score = this.getScoreFor(action);    this.hintsReady = false;  },
meta: 3385	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3385/9619925f65b7ebbd76a38034dbe7185d6e40422b/lib-game.js/buggy/code/lib-game.js