diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f3f90b633ab..fd93858c24a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4832,9 +4832,12 @@ module ts { container = getThisContainer(container, /* includeArrowFunctions */ false); // When targeting es6, arrow function lexically bind "this" so we do not need to do the work of binding "this" in emitted code - if (compilerOptions.target < ScriptTarget.ES6) { - needToCaptureLexicalThis = true; + if (compilerOptions.target >= ScriptTarget.ES6) { + needToCaptureLexicalThis = false; } + else { + needToCaptureLexicalThis = true; + } } switch (container.kind) {