Skip to content

Commit 6580262

Browse files
Initialize instead of letting the value be potentially undefined.
1 parent cd787cc commit 6580262

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/transformers

1 file changed

+1
-1
lines changed

src/compiler/transformers/es6.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ namespace ts {
838838
startLexicalEnvironment();
839839

840840
let statementOffset = -1;
841-
let thisCaptureStatus: SuperCaptureResult | undefined;
841+
let thisCaptureStatus = SuperCaptureResult.NoReplacement;
842842
if (hasSynthesizedSuper) {
843843
// If a super call has already been synthesized,
844844
// we're going to assume that we should just transform everything after that.

0 commit comments

Comments
 (0)