[SERVER-1293] assigning function that calls another function to a scope variable doesn't work Created: 24/Jun/10  Updated: 12/Jul/16  Resolved: 24/Jun/10

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

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

Operating System: ALL
Participants:

 Description   

> db.eval( "q = function()

{ print( 1 ); }

" );
Thu Jun 24 09:53:19 uncaught exception: {
"assertion" : "can't append type from:13",
"errmsg" : "db assertion failure",
"ok" : 0
}

This is a temporary workaround:

> db.eval( "q = {a:function() { print( 1 ); }}" );
{ "a" : function cf_3f()

{ print(1); }

}



 Comments   
Comment by auto [ 25/Jun/10 ]

Author:

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

Message: append for Code in scripting engine SERVER-1293
http://github.com/mongodb/mongo/commit/dd5dd04eb6950d365dea602f1b6b7ddb143feaa9

Comment by auto [ 25/Jun/10 ]

Author:

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

Message: append for Code in scripting engine SERVER-1293
http://github.com/mongodb/mongo/commit/dd5dd04eb6950d365dea602f1b6b7ddb143feaa9

Comment by auto [ 24/Jun/10 ]

Author:

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

Message: append for Code in scripting engine SERVER-1293
http://github.com/mongodb/mongo/commit/dd5dd04eb6950d365dea602f1b6b7ddb143feaa9

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