Initialize instead of letting the value be potentially undefined.

This commit is contained in:
Daniel Rosenwasser
2016-09-20 12:30:33 -04:00
parent cd787cc1c2
commit 6580262c95

View File

@@ -838,7 +838,7 @@ namespace ts {
startLexicalEnvironment();
let statementOffset = -1;
let thisCaptureStatus: SuperCaptureResult | undefined;
let thisCaptureStatus = SuperCaptureResult.NoReplacement;
if (hasSynthesizedSuper) {
// If a super call has already been synthesized,
// we're going to assume that we should just transform everything after that.