File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/compiler/transformers Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ namespace ts {
569
569
function visitThisKeyword ( node : Node ) : Node {
570
570
if ( convertedLoopState ) {
571
571
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.
573
573
convertedLoopState . containsLexicalThis = true ;
574
574
return node ;
575
575
}
@@ -1445,6 +1445,10 @@ namespace ts {
1445
1445
createVoidZero ( )
1446
1446
) ;
1447
1447
break ;
1448
+
1449
+ default :
1450
+ Debug . failBadSyntaxKind ( node ) ;
1451
+ break ;
1448
1452
}
1449
1453
1450
1454
const captureNewTargetStatement = createVariableStatement (
You can’t perform that action at this time.
0 commit comments