PR Feedback

This commit is contained in:
Ron Buckton 2016-12-21 15:14:34 -08:00
parent c53ae34c56
commit 4620fbd551

View File

@ -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(