Skip to content

Commit 813f28d

Browse files
Removed assertion.
1 parent fd93a3b commit 813f28d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/services/services.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,9 +2293,6 @@ module ts {
22932293
if (contains(<SyntaxKind[]>expected, token.kind)) {
22942294
keywordList.push(token);
22952295
}
2296-
else {
2297-
Debug.assert("Got '" + token.getFullText().substring(token.getLeadingTriviaWidth()) + "' instead of expected keyword.");
2298-
}
22992296
}
23002297

23012298
function keywordsToReferenceEntries(keywords: Node[]): ReferenceEntry[]{
@@ -3093,7 +3090,7 @@ module ts {
30933090
// ["// hack 1", "// ", "hack 1", undefined, "hack"]
30943091
//
30953092
// Here are the relevant capture groups:
3096-
// 0) The full match for hte entire regex.
3093+
// 0) The full match for the entire regex.
30973094
// 1) The preamble to the message portion.
30983095
// 2) The message portion.
30993096
// 3...N) The descriptor that was matched - by index. 'undefined' for each

0 commit comments

Comments
 (0)