You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Romeo (JIRA)" <ji...@apache.org> on 2015/03/25 21:12:53 UTC
[jira] [Created] (COUCHDB-2647) Named function in design fails to
evaluate.
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)