Skip to content

Commit 6b1f852

Browse files
committed
Fixes source map emit for synthetic constructors
1 parent 9e2ebf6 commit 6b1f852

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/compiler/transformers

src/compiler/transformers/ts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ namespace ts {
751751
createConstructor(
752752
parameters,
753753
body,
754-
/*location*/ constructor
754+
/*location*/ constructor || node
755755
),
756756
constructor
757757
)
@@ -846,7 +846,7 @@ namespace ts {
846846
createBlock(
847847
createNodeArray(
848848
statements,
849-
/*location*/ constructor ? constructor.body.statements : undefined
849+
/*location*/ constructor ? constructor.body.statements : node.members
850850
),
851851
/*location*/ constructor ? constructor.body : undefined
852852
),

0 commit comments

Comments
 (0)