[SERVER-602] SSJS in system.js seems to get cached Created: 03/Feb/10  Updated: 12/Jul/16  Resolved: 07/Feb/10

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 1.3.2

Type: Bug Priority: Major - P3
Reporter: Michael Dirolf Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:

 Description   

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

{ return x + 1; }

}
> db.eval("function()

{ foo.apply(this, arguments)}

", 1)
null
> db.eval("function()

{ return foo.apply(this, arguments)}", 1)
2
> db.system.js.remove()
> db.eval("function() { return foo.apply(this, arguments)}

", 1)
2
> db.system.js.find()
> db.eval("function()

{ return foo.apply(this, arguments)}

", 1)
2



 Comments   
Comment by auto [ 07/Feb/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: clean up scope from things removed from system.js SERVER-602
http://github.com/mongodb/mongo/commit/1342db66743eeff1c7f72003d77f097692084d88

Comment by Eliot Horowitz (Inactive) [ 04/Feb/10 ]

i'm not sure about codewscope in system.js, its a bit odd

Comment by Michael Dirolf [ 03/Feb/10 ]

can open another case for this if it deserves one, but also seems like maybe CodeWScope doesn't work right now w/ system.js?

Generated at Thu Feb 08 02:54:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.