Permalink
Browse files

Add async/await from ES2017

Temporarily merging under name of `es8`.
  • Loading branch information...
1 parent bc34a7c commit 8ff6f7d3e54d7e14e6d42a3f856296315cea50ea @rictic rictic committed with RReverser Aug 22, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 experimental/async-functions.md → es8.md
@@ -1,10 +1,10 @@
-# [Async Functions](https://github.com/lukehoban/ecmascript-asyncawait)
+This document specifies the extensions to the core ESTree AST types to support the ES8/ES2017 grammar.
## Function
```js
extend interface Function {
- async: false;
+ async: boolean;
}
```
@@ -13,6 +13,6 @@ extend interface Function {
```js
interface AwaitExpression <: Expression {
type: "AwaitExpression";
- argument: Expression | null;
+ argument: Expression;
}
```

0 comments on commit 8ff6f7d

Please sign in to comment.