1.2 KiB
1.2 KiB
Changelog
Tags:
- [Breaking Change]
- [Spec Compliancy]
- [New Feature]
- [Bug Fix]
- [Documentation]
- [Internal]
- [Polish]
Note: Gaps between patch versions are faulty, broken or test releases.
See the Babel Changelog for the pre-6.8.0 version changelog.
6.8.0 (2016-05-02)
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);
}