当前位置: 动力学知识库 > 问答 > 编程问答 >

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

问题描述:

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.

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: