2

The title contains the full question actually.

In CouchDB (and Cloudant in particular) you write design documents with views using JavaScript. What is the supported ECMAScript version there?

I could not find a relevant documentation.

TMG
  • 2,620
  • 1
  • 17
  • 40

1 Answers1

5

I believe that Mozilla Spider Monkey is used for executing the design documents.

The build documentation for CouchDB 2.0 state Mozilla Spider Monkey 1.8.5 as a dependency.

You can find the release notes for 1.8.5 contain the following:

SpiderMonkey 1.8.5 is the JavaScript engine that shipped in Firefox 4.0. It is much faster than SpiderMonkey 1.8, implements ES-5 (ECMA 262, 5th Edition), and contains many new language and API features, described in detail below.

You could maybe post a separate question with the [spidermonkey] tag to see if there is a javascript api method you can call to retrieve the spider monkey version via javascript.

Community
  • 1
  • 1
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
  • Thanks for the research and the detailed answer. I think your answer deplted the topic, but I opened another question as per your suggestion out of curiosity :-) http://stackoverflow.com/questions/42339772/javascript-api-to-check-spidermonkey-version – TMG Feb 20 '17 at 08:40