Skip to content

Commit 4620fbd

Browse files
committed
PR Feedback
1 parent c53ae34 commit 4620fbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiler/transformers/es2015.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ namespace ts {
569569
function visitThisKeyword(node: Node): Node {
570570
if (convertedLoopState) {
571571
if (hierarchyFacts & HierarchyFacts.ArrowFunction) {
572-
// if the enclosing function is an ArrowFunction is then we use the captured 'this' keyword.
572+
// if the enclosing function is an ArrowFunction then we use the captured 'this' keyword.
573573
convertedLoopState.containsLexicalThis = true;
574574
return node;
575575
}
@@ -1445,6 +1445,10 @@ namespace ts {
14451445
createVoidZero()
14461446
);
14471447
break;
1448+
1449+
default:
1450+
Debug.failBadSyntaxKind(node);
1451+
break;
14481452
}
14491453

14501454
const captureNewTargetStatement = createVariableStatement(

0 commit comments

Comments
 (0)