mike james created COUCHDB-2939:
-----------------------------------

             Summary: Support Design doc functions with identifiers
                 Key: COUCHDB-2939
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2939
             Project: CouchDB
          Issue Type: Bug
          Components: JavaScript View Server
            Reporter: mike james


I'm assuming its relevant to the JavaScript View Server.

I've found that babel gives anonymous functions identifiers which then get cast 
to a string with an identifier and submitted to couch db which isn't parsed by 
couchdb.

see gist for examples.
https://gist.github.com/export-mike/322e6c340294113096b6

I've added a PR to a node lib I'm currently using to fix the problem but I see 
this as a work around, the change adds a simple replace to remove function 
identifier. It would be great couch db supported {map: function map(){...}} etc.

here's the pr if your interested on the cradle module
https://github.com/flatiron/cradle/pull/306



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to