[SERVER-1840] in v8, can't do a $where with a function() inside of db.eval Created: 23/Sep/10  Updated: 12/Jul/16  Resolved: 04/Oct/10

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

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

Issue Links:
Depends
is depended on by SERVER-387 currentOp() and killOp() don't work r... Closed
Operating System: ALL
Participants:

 Description   

> db.f.count( {$where:function(){return 1;}} );
1
> db.eval( "db.f.count( {$where:function(){return 1;}} );" );
Thu Sep 23 11:08:18 exec error: shell/db.js:380

{ "errmsg" : "compile failed: ", "ok" : 0 }

throw tojson( res );
^

>



 Comments   
Comment by auto [ 04/Oct/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-1840 make eval function construction logic in v8 more consistent with sm
http://github.com/mongodb/mongo/commit/92a5d51100a5b45d06ffafe38af7de43e6502915

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