Skip to content

Commit

Permalink
Add async/await from ES2017
Browse files Browse the repository at this point in the history
Temporarily merging under name of `es8`.
  • Loading branch information
rictic authored and RReverser committed Aug 22, 2016
1 parent bc34a7c commit 8ff6f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experimental/async-functions.md → es8.md
Original file line number Diff line number Diff line change
@@ -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;
}
```

Expand All @@ -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.