Both _appendBsonValue and toBsonValue should limit their maximum recursion depth to 200, which is also the maximum BSON recursion depth.
If this limit is exceeded, throw an exception.
Both _appendBsonValue and toBsonValue should limit their maximum recursion depth to 200, which is also the maximum BSON recursion depth.
If this limit is exceeded, throw an exception.