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

@@ -590,6 +590,8 @@ AST_Toplevel.DEFMETHOD("compute_char_frequency", function(options){
base54.consider("finally");
else if (node instanceof AST_Yield)
base54.consider("yield");
else if (node instanceof AST_Await)
base54.consider("await");
else if (node instanceof AST_Symbol && node.unmangleable(options))
base54.consider(node.name);
else if (node instanceof AST_Unary || node instanceof AST_Binary)