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

Damjan Georgievski commented on COUCHDB-1302:
---------------------------------------------

My proposal is for CouchDB functions to be treated as CommonJS modules 
(http://wiki.commonjs.org/wiki/Modules/1.1) i.e. they would look like:

exports = function(doc) { emit bla bla }

btw, this seems to work even today in 1.2.x + vanilla 1.8.5 spidermonkey
                
> 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
>         Attachments: 
> 0001-Prevent-linking-against-too-new-of-a-SpiderMonkey.patch, 
> 0002-Minor-fixes-to-link-agianst-SpiderMonkey-trunk.patch
>
>
> 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