Green’s Dictionary of Slang

shart v.

[shit v. (1a) + fart v. (1)]

to expel faecal matter unintentionally when breaking wind, thus n. the sharts.

[US]G. Hayward Corruption Officer [ebook] Ch. 1: I am over here sharting on myself, like when you think you have to fart but mistakenly shit on yourself instead.
[US]T. Robinson Rough Trade [ebook] Junior looked at me like I’d sharted my Sunday pants right in the middle of Communion.
[Aus]T. Spicer Good Girl Stripped Bare 120: I have a case of the ‘shomits’, a human fountain flowing from both ends (It’s a step up from the ‘sharts’).