Merge pull request #30726 from Microsoft/fix30653

Treat hoisted temp variables as a custom prologue.
This commit is contained in:
Ron Buckton
2019-04-03 11:54:37 -07:00
committed by GitHub
26 changed files with 146 additions and 66 deletions

View File

@@ -327,6 +327,8 @@ namespace ts {
createVariableDeclarationList(lexicalEnvironmentVariableDeclarations)
);
setEmitFlags(statement, EmitFlags.CustomPrologue);
if (!statements) {
statements = [statement];
}