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