[ https://issues.apache.org/jira/browse/COUCHDB-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122622#comment-13122622 ]
Paul Joseph Davis commented on COUCHDB-1302: -------------------------------------------- I'm not entirely sure what you mean about encapsulation, but just evaling code and hoping for the best doesn't seem like the best solution here. When you eval something, it runs. So this case means we'd have to eval the function once per doc per view. Plus, other things. > Fix couchjs > ----------- > > Key: COUCHDB-1302 > URL: https://issues.apache.org/jira/browse/COUCHDB-1302 > Project: CouchDB > Issue Type: Improvement > Components: JavaScript View Server > Affects Versions: 1.1.1, 1.2, 1.3 > Reporter: Paul Joseph Davis > Priority: Blocker > > Figure out why some spidermonkeys have an error when doing: > eval("function(){}") -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira