summaryrefslogtreecommitdiff
path: root/shell/mongo.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-05-04 16:55:40 -0400
committerEliot Horowitz <eliot@10gen.com>2009-05-04 16:55:40 -0400
commite535ec014a896ea16bd67928602e90367e77683a (patch)
tree5cce1d0db2137a1910129f8f8481c96ed6022be9 /shell/mongo.js
parentba5581e4546e4805b8314751933e3b10092b2bc2 (diff)
downloadmongo-e535ec014a896ea16bd67928602e90367e77683a.tar.gz
fix v8
Diffstat (limited to 'shell/mongo.js')
-rw-r--r--shell/mongo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/mongo.js b/shell/mongo.js
index 93a7ffb4873..5f2c392cee7 100644
--- a/shell/mongo.js
+++ b/shell/mongo.js
@@ -24,7 +24,7 @@ Mongo.prototype.setSlaveOk = function() {
}
Mongo.prototype.getDB = function( name ){
- if ( createDB ){
+ if ( typeof createDB == "function" ){
print( "here" );
var newdb = createDB( this , name );
assert( this == newdb.getMongo() , "createDB sanity check 1" );