SERVER-119969ClosedFixed

Consider replacing uassert and invariant checks with tassert

It is supposed to be impossible to get invalid BSON into BSONObj and friends (aside from cases in testing where we try to break BSONObj). It would be a programmer error if invalid BSON makes it into BSONObj. We should use the non fatal in production tassert then.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.