Taipei, June 22 (CNA) Shares in Taiwan took a beating Wednesday, closing down by 380 points overall and erasing all of the gains from a session earlier, as investors locked in the previous session's profits from the bellwether electronics sector, dealers said.