summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-25 20:35:33 -0400
committerEliot Horowitz <eliot@10gen.com>2009-12-07 11:11:04 -0500
commit736490eeeff60d6cd89bec9da063450db9a730bc (patch)
tree805f5b3fbc544062a1c98ca29df57e610b82b2e2
parent57a6542753bed4a78d6bece5cb44143732b3e45e (diff)
downloadmongo-736490eeeff60d6cd89bec9da063450db9a730bc.tar.gz
remove wrong assertion SERVER-386
-rw-r--r--scripting/engine_spidermonkey.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp
index 49d98bd3854..d204e8f8c29 100644
--- a/scripting/engine_spidermonkey.cpp
+++ b/scripting/engine_spidermonkey.cpp
@@ -417,9 +417,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 );