Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4620fbd

Browse filesBrowse files
committed
PR Feedback
1 parent c53ae34 commit 4620fbd
Copy full SHA for 4620fbd

1 file changed

+5-1Lines changed: 5 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/transformers/es2015.ts‎

Copy file name to clipboardExpand all lines: src/compiler/transformers/es2015.ts
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.