diff options
Diffstat (limited to 'jstests/eval7.js')
-rw-r--r-- | jstests/eval7.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/eval7.js b/jstests/eval7.js new file mode 100644 index 0000000..45e06af --- /dev/null +++ b/jstests/eval7.js @@ -0,0 +1,3 @@ + +assert.eq( 6 , db.eval( "5 + 1" ) , "A" ) +assert.throws( function(z){ db.eval( "5 + function x; + 1" )} ); |