We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c53ae34 commit 4620fbdCopy full SHA for 4620fbd
1 file changed
src/compiler/transformers/es2015.ts
@@ -569,7 +569,7 @@ namespace ts {
569
function visitThisKeyword(node: Node): Node {
570
if (convertedLoopState) {
571
if (hierarchyFacts & HierarchyFacts.ArrowFunction) {
572
- // 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.
573
convertedLoopState.containsLexicalThis = true;
574
return node;
575
}
@@ -1445,6 +1445,10 @@ namespace ts {
1445
createVoidZero()
1446
);
1447
break;
1448
+
1449
+ default:
1450
+ Debug.failBadSyntaxKind(node);
1451
+ break;
1452
1453
1454
const captureNewTargetStatement = createVariableStatement(
0 commit comments