blob: 80197fcdde6fe844508b4d91b565c55c172a86b6 (
plain)
1
2
3
4
5
6
7
|
assert.writeOK(db.evalprep.insert({}), "db must exist for eval to succeed");
db.evalprep.drop();
assert.eq(6, db.eval("5 + 1"), "A");
assert.throws(function(z) {
db.eval("5 + function x; + 1");
});
|