mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:11:16 -06:00
PR Feedback
This commit is contained in:
parent
c53ae34c56
commit
4620fbd551
@ -569,7 +569,7 @@ namespace ts {
|
||||
function visitThisKeyword(node: Node): Node {
|
||||
if (convertedLoopState) {
|
||||
if (hierarchyFacts & HierarchyFacts.ArrowFunction) {
|
||||
// if the enclosing function is an ArrowFunction is then we use the captured 'this' keyword.
|
||||
// if the enclosing function is an ArrowFunction then we use the captured 'this' keyword.
|
||||
convertedLoopState.containsLexicalThis = true;
|
||||
return node;
|
||||
}
|
||||
@ -1445,6 +1445,10 @@ namespace ts {
|
||||
createVoidZero()
|
||||
);
|
||||
break;
|
||||
|
||||
default:
|
||||
Debug.failBadSyntaxKind(node);
|
||||
break;
|
||||
}
|
||||
|
||||
const captureNewTargetStatement = createVariableStatement(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user