Skip to content

Commit 4a5830d

Browse files
Remove usage of 'useCapturedThis'.
1 parent 5fadfd4 commit 4a5830d

File tree

1 file changed

+0
-3
lines changed
  • src/compiler/transformers

1 file changed

+0
-3
lines changed

src/compiler/transformers/es6.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,6 @@ namespace ts {
783783
function addConstructor(statements: Statement[], node: ClassExpression | ClassDeclaration, extendsClauseElement: ExpressionWithTypeArguments): void {
784784
const constructor = getFirstConstructorWithBody(node);
785785
const hasSynthesizedSuper = hasSynthesizedDefaultSuperCall(constructor, extendsClauseElement !== undefined);
786-
const savedUseCapturedThis = useCapturedThis;
787-
useCapturedThis = true;
788786

789787
const constructorFunction =
790788
createFunctionDeclaration(
@@ -802,7 +800,6 @@ namespace ts {
802800
if (extendsClauseElement) {
803801
setNodeEmitFlags(constructorFunction, NodeEmitFlags.CapturesThis);
804802
}
805-
useCapturedThis = savedUseCapturedThis;
806803
statements.push(constructorFunction);
807804
}
808805

0 commit comments

Comments
 (0)