-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: JavaScript
-
None
using a build from this morning.
> db.system.js.find()
> db.system.js.save({"_id": "foo", "value": function { return x + 1; }})
> db.system.js.find()
{ "id" : "foo", "value" : function cf3f
}
> db.eval("function()
", 1)
null
> db.eval("function()
2
> db.system.js.remove()
> db.eval("function() { return foo.apply(this, arguments)}
", 1)
2
> db.system.js.find()
> db.eval("function()
", 1)
2