Chocolate is poisonous to dogs. Dogs are very sensitive even to small quantities of theobromine, which is the component of chocolate that is poisonous and potentially lethal to them.
My dog once ate chocolate. She survived. She also had onions once which is also dangerous. Once we dropped a tray of chinese rice on the floor that had onions, carrots, peas, and rice, and she ate everything but the peas