Fix bug in comment lexing.

This commit is contained in:
Tor Andersson
2014-02-14 10:49:07 +01:00
parent 5b86924fe1
commit ccf14d4ab5

View File

@@ -219,7 +219,7 @@ static inline int lexcomment(js_State *J)
/* already consumed initial '/' '*' sequence */
while (PEEK != 0) {
if (ACCEPT('*')) {
while (ACCEPT('*'))
while (PEEK == '*')
NEXT();
if (ACCEPT('/'))
return 0;