What is the ECMAScript version supported in Cloudant (or CouchDB) design documents?

99封情书 提交于 2019-12-02 05:53:50

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/42294356/what-is-the-ecmascript-version-supported-in-cloudant-or-couchdb-design-documen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!