We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59185dc commit 92166caCopy full SHA for 92166ca
quickjs.c
@@ -19928,8 +19928,6 @@ static __exception int next_token(JSParseState *s)
19928
}
19929
s->token.col_num = max_int(1, s->mark - s->eol);
19930
s->buf_ptr = p;
19931
- s->last_line_num = s->token.line_num;
19932
- s->last_col_num = s->token.col_num;
19933
19934
// dump_token(s, &s->token);
19935
return 0;
@@ -20399,8 +20397,8 @@ static void emit_source_loc(JSParseState *s)
20399
20397
DynBuf *bc = &fd->byte_code;
20400
20398
20401
dbuf_putc(bc, OP_source_loc);
20402
- dbuf_put_u32(bc, s->last_line_num);
20403
- dbuf_put_u32(bc, s->last_col_num);
+ dbuf_put_u32(bc, s->token.line_num);
+ dbuf_put_u32(bc, s->token.col_num);
20404
20405
20406
static void emit_op(JSParseState *s, uint8_t val)
0 commit comments