0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00
mongodb/jstests/eval7.js
2009-05-20 15:47:48 -04:00

4 lines
108 B
JavaScript

assert.eq( 6 , db.eval( "5 + 1" ) , "A" )
assert.throws( function(z){ db.eval( "5 + function x; + 1" )} );