diff --git a/crates/oxc_parser/src/js/arrow.rs b/crates/oxc_parser/src/js/arrow.rs index 7c034da51..c529b953c 100644 --- a/crates/oxc_parser/src/js/arrow.rs +++ b/crates/oxc_parser/src/js/arrow.rs @@ -46,7 +46,7 @@ impl<'a> ParserImpl<'a> { fn is_parenthesized_arrow_function_expression(&mut self) -> Tristate { match self.cur_kind() { Kind::LParen | Kind::LAngle | Kind::Async => { - self.is_parenthesized_arrow_function_expression_worker() + self.lookahead(Self::is_parenthesized_arrow_function_expression_worker) } _ => Tristate::False, } diff --git a/tasks/coverage/codegen_misc.snap b/tasks/coverage/codegen_misc.snap index 0c34c74b8..9144ac89e 100644 --- a/tasks/coverage/codegen_misc.snap +++ b/tasks/coverage/codegen_misc.snap @@ -1,3 +1,3 @@ codegen_misc Summary: -AST Parsed : 16/16 (100.00%) -Positive Passed: 16/16 (100.00%) +AST Parsed : 17/17 (100.00%) +Positive Passed: 17/17 (100.00%) diff --git a/tasks/coverage/misc/pass/oxc-3399.js b/tasks/coverage/misc/pass/oxc-3399.js new file mode 100644 index 000000000..cf43131a6 --- /dev/null +++ b/tasks/coverage/misc/pass/oxc-3399.js @@ -0,0 +1 @@ +(/\./.exec()) diff --git a/tasks/coverage/parser_misc.snap b/tasks/coverage/parser_misc.snap index 47db22b1f..22ee84de8 100644 --- a/tasks/coverage/parser_misc.snap +++ b/tasks/coverage/parser_misc.snap @@ -1,6 +1,6 @@ parser_misc Summary: -AST Parsed : 16/16 (100.00%) -Positive Passed: 16/16 (100.00%) +AST Parsed : 17/17 (100.00%) +Positive Passed: 17/17 (100.00%) Negative Passed: 9/9 (100.00%) × Unexpected token diff --git a/tasks/coverage/prettier_misc.snap b/tasks/coverage/prettier_misc.snap index 52f998d27..1f3c0729f 100644 --- a/tasks/coverage/prettier_misc.snap +++ b/tasks/coverage/prettier_misc.snap @@ -1,6 +1,6 @@ prettier_misc Summary: -AST Parsed : 16/16 (100.00%) -Positive Passed: 9/16 (56.25%) +AST Parsed : 17/17 (100.00%) +Positive Passed: 10/17 (58.82%) Expect to Parse: "pass/oxc-1740.tsx" Expect to Parse: "pass/oxc-2087.ts" Expect to Parse: "pass/oxc-2394.ts" diff --git a/tasks/coverage/transformer_misc.snap b/tasks/coverage/transformer_misc.snap index aee9d4595..b3617b7de 100644 --- a/tasks/coverage/transformer_misc.snap +++ b/tasks/coverage/transformer_misc.snap @@ -1,3 +1,3 @@ transformer_misc Summary: -AST Parsed : 16/16 (100.00%) -Positive Passed: 16/16 (100.00%) +AST Parsed : 17/17 (100.00%) +Positive Passed: 17/17 (100.00%)