-
I am trying to write a few map functions to create views in a CouchDB database. Futon kept telling me that the script I wrote is not a valid function - despise that I used mostly standard JS features. After some debugging, I found that if I use standard This gives me the feeling that couchdb only supports a subset of JS, but could not find a document on what JS features are not supported. Can someone let me know if such document exist? why couchjs does not support standard JS functions? from #1875 and #2345, it seems newer spidermonkey versions have been supported, but feel a bit surprised that it does not support these basic JS features. my server has couchdb v3.3.2. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is determined by which version of spidermonkey your couchdb is built with. |
Beta Was this translation helpful? Give feedback.
-
thank you both for your prompt replies! the output of "javascript_engine":{"version":"1.8.5","name":"spidermonkey"} I will try couchdb on a newer server. |
Beta Was this translation helpful? Give feedback.
And you can show the used Spidermonkey engine with this endpoint.