Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
I'm assuming its relevant to the JavaScript View Server.
I've found that babel gives anonymous functions identifiers (names) which are not parsable by couchdb. Its valid js.
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 the function identifier. It would be great if couch db supported {map: function map(){...}} etc as its not going to be removed from babel as it isn't a bug.
here's the pr if your interested on the cradle module
https://github.com/flatiron/cradle/pull/306