We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c35f2 commit f8fbc22Copy full SHA for f8fbc22
src/compiler/transformers/es6.ts
@@ -965,21 +965,8 @@ namespace ts {
965
966
// The constructor was generated for some reason.
967
// Create a captured '_this' variable.
968
- statements.push(
969
- createVariableStatement(
970
- /*modifiers*/ undefined,
971
- createVariableDeclarationList([
972
- createVariableDeclaration(
973
- "_this",
974
- /*type*/ undefined,
975
- superReturnValueOrThis
976
- )
977
- ]),
978
- /*location*/ extendsClauseElement)
979
- );
980
-
+ captureThisForNode(statements, constructor, superReturnValueOrThis);
981
enableSubstitutionsForCapturedThis();
982
983
return SuperCaptureResult.ReplaceSuperCapture;
984
}
985
0 commit comments