We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c74bb84 commit b00a957Copy full SHA for b00a957
src/compiler/checker.ts
@@ -5855,10 +5855,6 @@ namespace ts {
5855
// When targeting es6, arrow function lexically bind "this" so we do not need to do the work of binding "this" in emitted code
5856
needToCaptureLexicalThis = (languageVersion < ScriptTarget.ES6);
5857
}
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
- }
5862
5863
switch (container.kind) {
5864
case SyntaxKind.ModuleDeclaration:
0 commit comments