0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/eval7.js

4 lines
108 B
JavaScript
Raw Normal View History

2009-05-20 21:47:48 +02:00
assert.eq( 6 , db.eval( "5 + 1" ) , "A" )
assert.throws( function(z){ db.eval( "5 + function x; + 1" )} );