What is the meaning of Crap_one's_pants?

To defecate into one's pants or other clothing.

To be frightened; especially, to be extremely frightened.

Source: wiktionary.org