From c5b00eea281d7bad49277c4878279171370b8dc6 Mon Sep 17 00:00:00 2001 From: ErosZy Date: Sat, 12 Nov 2022 23:25:18 +0800 Subject: [PATCH] fix: comments parse error because of column number --- quickjs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/quickjs.c b/quickjs.c index 3fb3c09..f99b3e5 100644 --- a/quickjs.c +++ b/quickjs.c @@ -20877,7 +20877,6 @@ static __exception int next_token(JSParseState *s) s->got_lf = TRUE; /* considered as LF for ASI */ s->column_ptr = ++p; s->column_num_count = 0; - p++; } else if (*p == '\r') { s->got_lf = TRUE; /* considered as LF for ASI */ p++; @@ -21438,7 +21437,6 @@ static __exception int json_next_token(JSParseState *s) s->line_num++; s->column_ptr = ++p; s->column_num_count = 0; - p++; } else if (*p == '\r') { p++; } else if (*p >= 0x80) {