Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Mozilla对ECMAScript 6的支持

这篇翻译不完整。请帮忙从英语翻译这篇文章

ECMAScript 2015 (6th Edition)是目前ECMAScript语言规范的标准。通常被称为"ES6",在SpiderMonkey 中它规定了JavaScript的实现标准, SpiderMonkey是一个JavaScript引擎,被广泛在火狐浏览器等谋智的众多产品中。

Code-named "ES.next" or "Harmony", the first working draft (based on ECMAScript 5.1) was published on July 12, 2011 as "ES.next". In August 2014, the ECMAScript 6 draft specification was feature frozen and went through a stabilization and bug fixing period. Finally, ECMA-262 Edition 6 got officially approved and published as a standard on June 17, 2015 by the ECMA General Assembly. It will also appear as the international industry standard ISO/IEC 16262:2016.

A PDF and HTML version of the standard can be freely downloaded on ecma-international.org.

A channel for feedback on ECMAScript standards is es-discuss.

Firefox 已经支持的 ECMAScript 6 特性

这里列出的功能已经在Firefox中支持;the version in which support was added is also indicated for each feature.

标准库

Additions to the Array object

新的 Map 和 Set,以及 WeakMap 和 WeakSet 对象

新的 Math 方法

Number 对象的补充

Object 对象的补充

Date 对象的补充

新的 Promise 对象

新的 Reflect 对象

RegExp 对象的补充

String 对象的补充

新的 Symbol 对象

Typed Arrays

Typed arrays are specified as part of ECMAScript 6 and no longer in their own specification.

表达式和操作符

语句

函数

其他特性

和ES6规范不兼容的特性

The following features are (partially) implemented in Firefox, but are not compliant with the specification. There are a couple of possible reasons for this: Firefox's implementation is based on an older draft of the ES6 specification, or Firefox's current implementation is an experimental design added before a similar feature was added to the ES6 specification.

Features partially supported by Firefox

These features, while part of ECMAScript 6, are only partially implemented in Firefox, and are only available in nightly builds.

New class syntax

还未支持的 ECMAScript 6 的功能

以下是 Firefox 实现(部分)的功能,但不符合规范。有那么几个能解释这个的原因:这些功能的实现是基于 ES6 规范较早期的草案,或 Firefox 的当前实现是一个实验性的设计,在与这个设计类似的功能加入到 ES6 规范之前。

相关链接

文档标签和贡献者

 此页面的贡献者: Ende93, xgqfrms, jianzhou520, lunix01, Cattla, ziyunfei, teoli
 最后编辑者: Ende93,