When I'm dieting/fasting, I sometimes chew my food and spit it out without swallowing. I know its gross and wasteful but how bad or dangerous is this?

I do this when I feel hungry, especially craving sweets at night. What will be the consequences of this habit?
When I'm dieting/fasting, I sometimes chew my food and spit it out without swallowing. I know its gross and wasteful but how bad or dangerous is this?
Post Opinion