Removed unneeded capture for lexical this

This commit is contained in:
Ron Buckton 2015-06-17 16:16:55 -07:00
parent c74bb842ba
commit b00a9579a8

View file

@ -5855,10 +5855,6 @@ namespace ts {
// When targeting es6, arrow function lexically bind "this" so we do not need to do the work of binding "this" in emitted code
needToCaptureLexicalThis = (languageVersion < ScriptTarget.ES6);
}
else if (node.parserContextFlags & ParserContextFlags.Await) {
// if 'this' is part of an async function, we will need to capture 'this'
needToCaptureLexicalThis = (languageVersion < ScriptTarget.ES6);
}
switch (container.kind) {
case SyntaxKind.ModuleDeclaration: