Fix7334 Disallow async in functionExpression and ArrowFunction (#9062)

* Error when using async modifier in function-expression and arrow-function when target es5

* Add tests and baselines
This commit is contained in:
Yui
2016-06-09 15:01:08 -07:00
committed by GitHub
parent d0f669e956
commit 574a64dec9
4 changed files with 56 additions and 0 deletions

View File

@@ -17794,6 +17794,8 @@ namespace ts {
case SyntaxKind.ImportEqualsDeclaration:
case SyntaxKind.ExportDeclaration:
case SyntaxKind.ExportAssignment:
case SyntaxKind.FunctionExpression:
case SyntaxKind.ArrowFunction:
case SyntaxKind.Parameter:
break;
case SyntaxKind.FunctionDeclaration: