summaryrefslogtreecommitdiff
path: root/jstests/js7.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/js7.js')
-rw-r--r--jstests/js7.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/js7.js b/jstests/js7.js
new file mode 100644
index 00000000000..73ce9c9a6fb
--- /dev/null
+++ b/jstests/js7.js
@@ -0,0 +1,7 @@
+t = db.jstests_js7;
+t.drop();
+
+assert.eq( 17 , db.eval( function(){ return args[0]; } , 17 ) );
+
+assert.eq( 17 , db.eval( function( foo ){ return foo; } , 17 ) );
+