mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 15:01:36 -05:00
Fix transformed constructor code when there is code between prologue statements and super call (#48765)
This commit is contained in:
@@ -1146,7 +1146,7 @@ namespace ts {
|
||||
[
|
||||
...existingPrologue,
|
||||
...prologue,
|
||||
...(superStatementIndex <= existingPrologue.length ? emptyArray : visitNodes(constructor.body.statements, visitor, isStatement, existingPrologue.length, superStatementIndex)),
|
||||
...(superStatementIndex <= existingPrologue.length ? emptyArray : visitNodes(constructor.body.statements, visitor, isStatement, existingPrologue.length, superStatementIndex - existingPrologue.length)),
|
||||
...statements
|
||||
]
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user