We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39046fa commit 132cd27Copy full SHA for 132cd27
src/compiler/scanner.ts
@@ -676,9 +676,8 @@ module ts {
676
if (text.charCodeAt(pos + 1) === CharacterCodes.asterisk) {
677
pos += 2;
678
679
- var safeLength = len - 1; // For lookahead.
680
var commentClosed = false;
681
- while (pos < safeLength) {
+ while (pos < len) {
682
var ch = text.charCodeAt(pos);
683
684
if (ch === CharacterCodes.asterisk && text.charCodeAt(pos + 1) === CharacterCodes.slash) {
@@ -694,7 +693,6 @@ module ts {
694
693
}
695
696
if (!commentClosed) {
697
- pos++;
698
error(Diagnostics.Asterisk_Slash_expected);
699
700
0 commit comments