Update type checking for lexical binding due to merge with master
This commit is contained in:
parent
581beb58dc
commit
de9547cc9e
1 changed files with 5 additions and 2 deletions
|
@ -4832,7 +4832,10 @@ 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) {
|
||||
if (compilerOptions.target >= ScriptTarget.ES6) {
|
||||
needToCaptureLexicalThis = false;
|
||||
}
|
||||
else {
|
||||
needToCaptureLexicalThis = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue