运行 mongoDB shell 的 JavaScript 引擎是什么? [英] What is the JavaScript engine that runs mongoDB shell?

查看:74
本文介绍了运行 mongoDB shell 的 JavaScript 引擎是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是V8吗?似乎无法找到此信息.

Is it V8? Can't seem to find this information.

推荐答案

As of v3.1.7 它是 SpiderMonkey - 在 MongoDB 3.2 上确认 发行说明.

As of v3.1.7 it is SpiderMonkey - confirmed on the MongoDB 3.2 release notes.

兼容性说明:

此更改允许使用更现代的 JavaScript 语言功能,并伴随着 mongo shell 的细微改进和兼容性更改

The change allows the use of more modern JavaScript language features, and comes along with minor mongo shell improvements and compatibility changes

关于此处还有一些说明.

最近发布的 MongoDB v3.3.5 收到了 更新 SpiderMonkey 版本到 45.0.2 ESR.

A recent MongoDB release v3.3.5 received an update to the SpiderMonkey version to 45.0.2 ESR.

在 v3.1.6 版本中进行了从 V8 切换回 SpiderMonkey 的开发 - 参见 SERVER-18531,但在 v3.1.7 之前默认情况下未启用 SpiderMonkey - 请参阅 SERVER-19376.

Development on switching back to SpiderMonkey from V8 was carried out in the v3.1.6 release - see SERVER-18531, but SpiderMonkey was not enabled by default until v3.1.7 - see SERVER-19376.

在 v3.1.6 之前,它是 V8 JavaScript 引擎,在 v2 中成为默认引擎.3.1,根据 发行说明 并且也是在 v2.4 发行说明中突出显示.

Before v3.1.6 it was the V8 JavaScript engine, which became the default in v2.3.1, according to the release notes and is also highlighted in the v2.4 release notes.

SpiderMonkey 在 v2.5.1 中被从源代码中删除

SpiderMonkey was removed from the source in v2.5.1

在此之前,它是一个扩展的 SpiderMonkey v1.7 shell 使用了一些非标准的 JavaScript 扩展,例如 ECMAScript for XML 扩展.

Before that, it was an extended SpiderMonkey v1.7 shell that used some non-standard JavaScript extensions, for example the ECMAScript for XML extensions.

它似乎是更早的 V8,但在 中被迁移2009 年 4 月 从 V8 到 SpiderMonkey.根据 这篇文章,但我不知道原来的开关是什么时候.

It seems to have been V8 even further back, but was migrated in April 2009 from V8 to SpiderMonkey. It looks like it was still SpiderMonkey for MongoDB in v1.1.4 according to this post, but I can't find out when the original switch was.

这篇关于运行 mongoDB shell 的 JavaScript 引擎是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆