Wiktionary
shit one's pants
vb. 1 (&lit to shit in one's pants English) 2 (context idiomatic English) To be extremely frightened.