mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Merge pull request #30726 from Microsoft/fix30653
Treat hoisted temp variables as a custom prologue.
This commit is contained in:
@@ -327,6 +327,8 @@ namespace ts {
|
||||
createVariableDeclarationList(lexicalEnvironmentVariableDeclarations)
|
||||
);
|
||||
|
||||
setEmitFlags(statement, EmitFlags.CustomPrologue);
|
||||
|
||||
if (!statements) {
|
||||
statements = [statement];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user