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 07eb60d commit de85f2bCopy full SHA for de85f2b
javascript/extractor/src/com/semmle/js/parser/JSONParser.java
@@ -356,7 +356,7 @@ private void skipLineComment() throws ParseError {
356
char c;
357
next();
358
359
- while ((c = peek()) != '\r' && c != '\n' && c != -1) next();
+ while ((c = peek()) != '\r' && c != '\n') next();
360
}
361
362
/** Skips the block comment starting at the current position. */
@@ -367,7 +367,6 @@ private void skipBlockComment() throws ParseError {
367
368
do {
369
c = peek();
370
- if (c < 0) raise("Unterminated comment.");
371
372
if (c == '*' && peek() == '/') {
373
0 commit comments