From 6580262c950626b9e14f4a1de90a8c420d6c5069 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 20 Sep 2016 12:30:33 -0400 Subject: [PATCH] Initialize instead of letting the value be potentially undefined. --- src/compiler/transformers/es6.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/transformers/es6.ts b/src/compiler/transformers/es6.ts index 5748739cb23..a69dcdfbe6a 100644 --- a/src/compiler/transformers/es6.ts +++ b/src/compiler/transformers/es6.ts @@ -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.