first cut of async/await (#2098)

- async arrow functions not yet supported


fixes #1789
This commit is contained in:
kzc
2017-06-14 18:15:48 -04:00
committed by Alex Lam S.L
parent 7cc03d4d40
commit 100e18305d
7 changed files with 310 additions and 18 deletions

View File

@@ -199,6 +199,10 @@ TreeTransformer.prototype = new TreeWalker;
if (self.expression) self.expression = self.expression.transform(tw);
});
_(AST_Await, function(self, tw){
self.expression = self.expression.transform(tw);
});
_(AST_Unary, function(self, tw){
self.expression = self.expression.transform(tw);
});