Find the word definition

Wiktionary
eat one's hat

vb. (context idiomatic English) (non-gloss definition: Used in a result clause to express disbelief in a proposition expressed in a conditional clause.)