How would you know if your baby pooped in the womb before your water broke?

ash

I’m 33 weeks & my friend just gave birth & they had no idea that her son pooped until they broke her water , cant that be fatal??? What if he had pooped weeks prior???? I’m paranoid & also curious as to how that works. What if your baby pooped several weeks before you went into labor?