File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
src/compiler/transformers Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -783,8 +783,6 @@ namespace ts {
783
783
function addConstructor ( statements : Statement [ ] , node : ClassExpression | ClassDeclaration , extendsClauseElement : ExpressionWithTypeArguments ) : void {
784
784
const constructor = getFirstConstructorWithBody ( node ) ;
785
785
const hasSynthesizedSuper = hasSynthesizedDefaultSuperCall ( constructor , extendsClauseElement !== undefined ) ;
786
- const savedUseCapturedThis = useCapturedThis ;
787
- useCapturedThis = true ;
788
786
789
787
const constructorFunction =
790
788
createFunctionDeclaration (
@@ -802,7 +800,6 @@ namespace ts {
802
800
if ( extendsClauseElement ) {
803
801
setNodeEmitFlags ( constructorFunction , NodeEmitFlags . CapturesThis ) ;
804
802
}
805
- useCapturedThis = savedUseCapturedThis ;
806
803
statements . push ( constructorFunction ) ;
807
804
}
808
805
You can’t perform that action at this time.
0 commit comments