Skip to content

Commit 8a94d63

Browse files
committed
chore(parser): document possibly-buggy transactions
1 parent 16a8479 commit 8a94d63

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/quick-lint-js/fe/parse-expression.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,8 @@ expression* parser::parse_await_expression(parse_visitor_base& v,
992992

993993
parser_transaction transaction = this->begin_transaction();
994994

995+
// FIXME(#831): v should not be used here. We should use a
996+
// buffering_visitor.
995997
if (this->in_top_level_) {
996998
// Try to parse the / as a regular expression literal or the < as a
997999
// JSX element.

src/quick-lint-js/fe/parse-statement.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3499,6 +3499,8 @@ void parser::parse_and_visit_let_bindings(parse_visitor_base &v,
34993499
source_code_span in_token_span = this->peek().span();
35003500
QLJS_ASSERT(!allow_in_operator);
35013501

3502+
// FIXME(#831): v should not be used here. We should use a
3503+
// buffering_visitor.
35023504
this->try_parse(
35033505
[&] {
35043506
expression *in_ast = this->parse_expression_remainder(

0 commit comments

Comments
 (0)