SERVER-446 v8 don't attempt to convert c++ backed 'external' objects to BSON

This commit is contained in:
Aaron
2009-12-16 17:47:32 -08:00
parent 4cf6964975
commit c3ea73736f

View File

@@ -392,7 +392,10 @@ namespace mongo {
b.appendDate( sname.c_str() , Date_t(v8::Date::Cast( *value )->NumberValue()) );
return;
}
if ( value->IsExternal() )
return;
if ( value->IsObject() ){
// The user could potentially modify the fields of these special objects,
// wreaking havoc when we attempt to reinterpret them. Not doing any validation