[ 
https://issues.apache.org/jira/browse/COUCHDB-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122427#comment-13122427
 ] 

Randall Leeds commented on COUCHDB-1302:
----------------------------------------

+1 on 1 and 2.
+1 for 3. I'll write this up for 1.1.x if Paul doesn't beat me to it. 1.2/2.0 
needs something different though.

Paul discovered and mentioned in IRC that we can't actually look for the last 
function if people use named functions because eval('function map(...){...}') 
=== undefined. In other words, we need to pull 'map' out of the global scope 
after the call to eval() so it needs to have a well-known name.

So we're stuck opening up the 2.0 can of worms it seems. We should consider 
what the cleanest looking design document that makes this all look sane is and 
what effect any changes have on the way we index and optimize work for 
calculating design doc indexes.

We should focus on 1.1.1 and then open the bikeshed floodgates.
                
> 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

        

Reply via email to