Spit up

To throw something up, to vomit something.

The dog spit up the button that he had swallowed.