Wiktionary
poop one's pants
vb. (context idiomatic childish English) to defecate in one's clothes while wearing them.