Fix typo in lexlinecomment where it did not detect EOF properly.

This commit is contained in:
Tor Andersson
2020-06-25 13:29:42 +02:00
parent ac25ac54fa
commit 9f3e141d80

View File

@@ -228,7 +228,7 @@ static char *textend(js_State *J)
static void lexlinecomment(js_State *J)
{
while (J->lexchar && J->lexchar != '\n')
while (J->lexchar != EOF && J->lexchar != '\n')
jsY_next(J);
}