couchrest/couchrest — Issue #82: Problem with map/reduce functions syntax
Author: akrivoruchko
Created: 2012-01-16 12:49:26+00:00
State: open

Hello!

I'm testing couchrest with couchdb 1.1.1-1 (Debian wheesy) and views not working at all.

Cause of the problem described here: https://issues.apache.org/jira/browse/COUCHDB-1302

In a nutshell an anonymous function at the root of a scope is invalid JavaScript. I.e., the following is invalid: "function(doc) {...}" and SpiderMonkey (used by couchdb) ceased to allow this by default. Correct definition is "(function(doc){...})".
So, I propose to upgrade map/reduce function definitions.
I think it is pretty easy to do, but I'm not familiar with git. May be somebody can help.

Thanks!