Romeo created COUCHDB-2647: ------------------------------ Summary: Named function in design fails to evaluate. Key: COUCHDB-2647 URL: https://issues.apache.org/jira/browse/COUCHDB-2647 Project: CouchDB Issue Type: Bug Security Level: public (Regular issues) Components: JavaScript View Server Reporter: Romeo
When a named function is used for a design function, the server generates a *Error: compilation_error*. To reproduce this, create a view function that has a map function that looks like this: {code} function name(doc) { emit(doc._id, doc); } {code} This can be mitigated by not uploading named functions of course, but sometimes this is harder than it seems (when using libraries to do the uploading for example). Also, named functions are technically equivalent to anonymous functions so they should work. -- This message was sent by Atlassian JIRA (v6.3.4#6332)