Node.js 0.12 中提供的 ECMAScript 6 功能 [英] ECMAScript 6 features available in Node.js 0.12

查看:20
本文介绍了Node.js 0.12 中提供的 ECMAScript 6 功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Node.js (0.12) 的新稳定版本最近发布,其中包含升级的 Google v8 JavaScript 引擎 v3.28.73.

A new stable release of Node.js (0.12) has landed recently with an upgraded Google's v8 JavaScript engine, v3.28.73.

我检查了几个声称列出 ES 6 特性的网站,但它们似乎都过时了——最突出的是,此表(更新:现在更新为 0.12 的当前 Node.js 状态),因为列出了一些功能因为需要 --harmony 标志,而我发现其中一些默认启用(地图、集合、符号,仅举几例).更新:节点特定表已经可用

I have checked several sites claiming to list the ES 6 features but all of them seem out of date - most prominently, this table (Update: now updated with current Node.js status as of 0.12), because several of the features are listed as requiring the --harmony flag while I found some of them being enabled by default (Maps, Sets, Symbols, to name a few). Update: Node specific tables have since been made available

此外,试图纯粹为 v8 引擎搜索这些信息会提供过于最新的信息 - 当前的 v8 版本是 4.2.*,这远远领先于 Node.js 使用的版本.

Also, trying to google this information purely for the v8 engine gives too up-to-date information - current v8 release is 4.2.*, which is quite ahead of what Node.js uses.

我希望这个问题(及其答案)能够成为对 Node.js 开发人员现在可以使用的 ES 6 功能的全面总结.

My hopes are that this question (and its answers) will become a comprehensive summary on what ES 6 features are now available to Node.js developers.

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