remove wrong assertion SERVER-386

This commit is contained in:
Eliot Horowitz
2009-10-25 20:35:33 -04:00
parent ea9ae0425f
commit 6475aeecfb

View File

@@ -465,9 +465,8 @@ namespace mongo {
}
int n = embed.nFields();
assert( n > 0 );
JSObject * array = JS_NewArrayObject( _context , embed.nFields() , 0 );
JSObject * array = JS_NewArrayObject( _context , n , 0 );
assert( array );
jsval myarray = OBJECT_TO_JSVAL( array );