Mozilla における ECMAScript 6 のサポート

ECMAScript 6 は "Harmony" または "ES.next" のコードネームで呼称される、 JavaScript の次期標準仕様です。 策定中の仕様草案は公式の wiki で閲覧可能です。 es-discuss よりフィードバックを提供する事が出来ます。

既に Firefox でサポートされている機能

構文

機能 JS バージョン コメント
const ? 現在の仕様に準拠していません: const によるバインディングは let でなく var を用いた場合の様にふるまいます。
let ? 現在の仕様に準拠していません
分割代入 () JS 1.7 現在の仕様に準拠していません
for...of 文 New in Firefox 13  
イテレータ及びジェネレータ ? 現在の仕様に準拠していません
rest パラメータ New in Firefox 15  
デフォルトパラメータ New in Firefox 15  
Array の spread 演算子 New in Firefox 16  

標準ライブラリ

機能 JS バージョン コメント
Map New in Firefox 13
(New in Firefox 17 Iterable)
collection の新しい型
Set New in Firefox 13
(New in Firefox 17 Iterable)
collection の新しい型
WeakMap New in Firefox 6
(New in Firefox 20 clear())
collection の新しい型
Proxy New in Firefox 18  
RegExp の sticky (y) フラグ ?  
Number.isNaN() New in Firefox 16  
Number.isFinite() New in Firefox 16  
Number.toInteger() New in Firefox 16  
Number.isInteger() New in Firefox 16  
String.startsWith() New in Firefox 17  
String.endsWith() New in Firefox 17  
String.contains() New in Firefox 17  

まだ Firefox でサポートされていない機能

  • is 演算子及び isnt 演算子
  • 新たな数学関数 (log10, log2, log1p, expm1, cosh, sinh, tanh, acosh, asinh, atanh, hypot, trunc, sign)
  • モジュール (Modules)

関連情報

タグ (3)

このページの貢献者: saneyuki_s, ethertank, Yoshino
最終更新:: ethertank,
最終レビュー:: ethertank,