File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2464,9 +2464,9 @@ namespace ts {
24642464 }
24652465 if ( token === SyntaxKind . OpenBracketToken || token === SyntaxKind . OpenBraceToken ) {
24662466 // Return true if we can parse an array or object binding pattern with no errors
2467- const count = parseDiagnostics . length ;
2467+ const previousErrorCount = parseDiagnostics . length ;
24682468 parseIdentifierOrPattern ( ) ;
2469- return count === parseDiagnostics . length ;
2469+ return previousErrorCount === parseDiagnostics . length ;
24702470 }
24712471 return false ;
24722472 }
@@ -2492,7 +2492,7 @@ namespace ts {
24922492 if ( token === SyntaxKind . CloseParenToken ) {
24932493 nextToken ( ) ;
24942494 if ( token === SyntaxKind . EqualsGreaterThanToken ) {
2495- // ( id ) =>
2495+ // ( xxx ) =>
24962496 return true ;
24972497 }
24982498 }
You can’t perform that action at this time.
0 commit comments