mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
4 lines
108 B
JavaScript
4 lines
108 B
JavaScript
|
|
assert.eq( 6 , db.eval( "5 + 1" ) , "A" )
|
|
assert.throws( function(z){ db.eval( "5 + function x; + 1" )} );
|