Babel 7.2.0 发布,JavaScript 编译器

栏目: 软件资讯 · 发布时间: 7年前

内容简介:Babel 7.2.0 已发布,Babel 是用于编写下一代 JavaScript 的编译器。此版本包含对私有实例方法的支持以及一些围绕 Flow 和 TypeScript 类的 bug 修复。 更新亮点 Private Instance Methods (#8654) class Perso...

Babel 7.2.0 已发布,Babel 是用于编写下一代 JavaScript 的编译器。此版本包含对私有实例方法的支持以及一些围绕 Flow 和 TypeScript 类的 bug 修复。

更新亮点

Private Instance Methods (#8654)

class Person {
  #age = 19;

  #increaseAge() {
    this.#age++;
  }

  birthday() {
    this.#increaseAge();
    alert("Happy Birthday!");
  }
}

"Smart" Pipeline Operator Parsing (#8289)

// "Smart"
const result = 2 |> double |> 3 + # |> toStringBase(2, #); // "111"

// "Simple"
const result = 2 |> double |> (x => 3 + x) |> (x => toStringBase(2, x));

Plugin Names (#8769)

Babel 7.2.0 发布,JavaScript 编译器

发行说明:

https://babeljs.io/blog/2018/12/03/7.2.0


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《Babel 7.2.0 发布,JavaScript 编译器》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Trading and Exchanges

Trading and Exchanges

Larry Harris / Oxford University Press, USA / 2002-10-24 / USD 95.00

This book is about trading, the people who trade securities and contracts, the marketplaces where they trade, and the rules that govern it. Readers will learn about investors, brokers, dealers, arbit......一起来看看 《Trading and Exchanges》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具