We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01c195 commit 784eac5Copy full SHA for 784eac5
1 file changed
src/compiler/transformers/es2015.ts
@@ -1027,8 +1027,8 @@ namespace ts {
1027
// Return the result if we have an immediate super() call on the last statement,
1028
// but only if the constructor itself doesn't use 'this' elsewhere.
1029
if (superCallExpression
1030
- && statementOffset === ctorStatements.length - 1
1031
- && !(ctor.transformFlags & (TransformFlags.ContainsLexicalThis | TransformFlags.ContainsCapturedLexicalThis))) {
+ && statementOffset === ctorStatements.length - 1
+ && !(ctor.transformFlags & (TransformFlags.ContainsLexicalThis | TransformFlags.ContainsCapturedLexicalThis))) {
1032
const returnStatement = createReturn(superCallExpression);
1033
1034
if (superCallExpression.kind !== SyntaxKind.BinaryExpression
0 commit comments