diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-05-04 16:55:40 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-05-04 16:55:40 -0400 |
commit | e535ec014a896ea16bd67928602e90367e77683a (patch) | |
tree | 5cce1d0db2137a1910129f8f8481c96ed6022be9 /shell/mongo.js | |
parent | ba5581e4546e4805b8314751933e3b10092b2bc2 (diff) | |
download | mongo-e535ec014a896ea16bd67928602e90367e77683a.tar.gz |
fix v8
Diffstat (limited to 'shell/mongo.js')
-rw-r--r-- | shell/mongo.js | 2 |
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" ); |