设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 开源资讯 Firefox 查看内容

ECMAScript 6得到了Mozilla的支持

2013-5-28 10:06| 发布者: joejoe0332| 查看: 766| 评论: 0|原作者: 开源中国社区|来自: 开源中国社区

摘要:   ECMAScript 6 是下一个版本标准,标准草案已经在官方 wiki 中公布。如果你想发送反馈意见,可以访问 es-discuss.   TC39 共识标注为三个不同级别 Consensus 共识 Ongoing Discussion 讨论中 Controversial ...
  ECMAScript 6 是下一个版本标准,标准草案已经在官方 wiki 中公布。如果你想发送反馈意见,可以访问 es-discuss.

  TC39 共识标注为三个不同级别

Consensus 共识
Ongoing Discussion 讨论中
Controversial 争议

 

  这三个级别的意思是:

  • Consensus: 没有太大分歧
  • Ongoing discussion: 功能已经达成共识,但还有一些设计方面的问题需要进一步讨论
  • Controversial: 设计方面有很大的分歧

  Firefox 已经支持的特性

Syntax

Feature Version Comment TC39 Consensus
const ? Not compliant with the current specification: scoped like var not let  
let (global scope) ? Not compliant with the current specification  
let (local scope) ? Not compliant with the current specification  
Destructuring assignment JS 1.7 Not compliant with the current specification  
for...of statement New in Firefox 13    
Iterators and generators ? Not compliant with the current specification  
Rest parameters New in Firefox 15    
Default parameters New in Firefox 15    
Spread operator of Array New in Firefox 16    
Arrow functions New in Firefox 22    

Standard library

Feature Version Comment TC39 Consensus
Map New in Firefox 13 A new type of collections  
Map Iteration New in Firefox 17 Iterable in for-of  
Map methods   forEach, entries, keys, values  
Set New in Firefox 13 A new type of collections  
Set Iteration New in Firefox 17 Iterable in for-of  
Set methods   forEach, entries, keys, values  
Array Iteration New in Firefox 13 Iterable in for-of  
WeakMap New in Firefox 6 A new type of collections  
weakmap.clear() New in Firefox 20    
Proxy New in Firefox 18    
RegExp sticky (y) flag ?    
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    
string.repeat() New in Firefox 24    
Object.is      
Math.imul New in Firefox 20 C-like 32-bit integer multiplication  

尚未支持的特性

  • isisnt 操作符
  • 新的 Math 函数(log10, log2, log1p, expm1, cosh, sinh, tanh, acosh, asinh, atanh, hypot, trunc, sign)
  • 模块
  • 符号

酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部