summaryrefslogtreecommitdiff
path: root/shell/collection.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-05-05 17:28:24 -0400
committerEliot Horowitz <eliot@10gen.com>2009-05-05 17:28:24 -0400
commitc9d845038910f6ee04461289b71122e697d4a727 (patch)
treeffa9109628e8154658f40d07e4fadfec66dd8d77 /shell/collection.js
parent77c36b8c3710a7e079a6db3639346fa00e01a313 (diff)
downloadmongo-c9d845038910f6ee04461289b71122e697d4a727.tar.gz
Spider Monkey: framework mostly done now
Diffstat (limited to 'shell/collection.js')
-rw-r--r--shell/collection.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/collection.js b/shell/collection.js
index 85f000cfb60..95d645c4e09 100644
--- a/shell/collection.js
+++ b/shell/collection.js
@@ -13,12 +13,13 @@ if ( ( typeof DBCollection ) == "undefined" ){
}
DBCollection.prototype.verify = function(){
- assert( this._mongo , "no mongo" );
- assert( this._db , "no db" );
- assert( this._shortName , "no shortName" );
assert( this._fullName , "no fullName" );
+ assert( this._shortName , "no shortName" );
+ assert( this._db , "no db" );
assert.eq( this._fullName , this._db._name + "." + this._shortName , "name mismatch" );
+
+ assert( this._mongo , "no mongo in DBCollection" );
}
DBCollection.prototype.getName = function(){