[ES6] support async arrow functions (#2153)

fixes #2102
This commit is contained in:
Alex Lam S.L
2017-06-24 05:26:35 +08:00
committed by GitHub
parent 137e4c4753
commit 7b95b63ca1
6 changed files with 73 additions and 58 deletions

View File

@@ -202,3 +202,11 @@ arrow_unused_toplevel: {
expect_stdout: [ "0", "1", "2", "9" ]
node_version: ">=6"
}
no_leading_parentheses: {
input: {
(x,y) => x(y);
async (x,y) => await x(y);
}
expect_exact: "(x,y)=>x(y);async(x,y)=>await x(y);"
}