We're talking about a 3yo child though. My 3yo does things without thinking, I don't think yelling at the child will solve anything. Maybe a stern word and let them know they hurt you. And throwing the toy away is just cruel. A child so young just doesn't think about the consequences of their actions in the moment.