Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

v6.8.0

Compare
Choose a tag to compare
@hzoo hzoo released this 04 May 14:09
· 706 commits to master since this release

6.8.0 (2016-05-04)

This is also the first release of babylon outside of the main babel repo. We are able to parse two new features! This release is to correspond to the previous Babel 6.8.0 release since babylon is also compiled with Babel 6. In the future, the version numbers may not correspond the same given it's in a separate repo.

New Feature

Parse Method Parameter Decorators (#12)

Method Parameter Decorators is now a TC39 stage 0 proposal.

Examples:

class Foo {
  constructor(@foo() x, @bar({ a: 123 }) @baz() y) {}
}

export default function func(@foo() x, @bar({ a: 123 }) @baz() y) {}

var obj = {
  method(@foo() x, @bar({ a: 123 }) @baz() y) {}
};
Parse for-await statements (w/ asyncGenerators plugin) (#17)

There is also a new node type, ForAwaitStatement.

Async generators and for-await are now a stage 2 proposal.

Example:

async function f() {
  for await (let x of y);
}