Skip to content

Commit b00a957

Browse files
committed
Removed unneeded capture for lexical this
1 parent c74bb84 commit b00a957

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5855,10 +5855,6 @@ namespace ts {
58555855
// When targeting es6, arrow function lexically bind "this" so we do not need to do the work of binding "this" in emitted code
58565856
needToCaptureLexicalThis = (languageVersion < ScriptTarget.ES6);
58575857
}
5858-
else if (node.parserContextFlags & ParserContextFlags.Await) {
5859-
// if 'this' is part of an async function, we will need to capture 'this'
5860-
needToCaptureLexicalThis = (languageVersion < ScriptTarget.ES6);
5861-
}
58625858

58635859
switch (container.kind) {
58645860
case SyntaxKind.ModuleDeclaration:

0 commit comments

Comments
 (0)