summaryrefslogtreecommitdiff
path: root/jstests/evalb.js
blob: 3bc3db146e9ce5e88a01ef68145bdb77fbe1898e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

t = db.evalb;
t.drop();

t.save( { x : 3 } );

assert.eq( 3, db.eval( function(){ return db.evalb.findOne().x; } ) , "A" );

db.setProfilingLevel( 2 );

assert.eq( 3, db.eval( function(){ return db.evalb.findOne().x; } ) , "B" );

db.setProfilingLevel( 0 );