Skip to content

Commit 2e8a08c

Browse files
committed
Fix line:column reporting for throw statement
1 parent a651bbe commit 2e8a08c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickjs.c

+1
Original file line numberDiff line numberDiff line change
@@ -25574,6 +25574,7 @@ static __exception int js_parse_statement_or_decl(JSParseState *s,
2557425574
js_parse_error(s, "line terminator not allowed after throw");
2557525575
goto fail;
2557625576
}
25577+
emit_source_loc(s);
2557725578
if (js_parse_expr(s))
2557825579
goto fail;
2557925580
emit_op(s, OP_throw);

0 commit comments

Comments
 (0)