We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e852c3a commit 9703599Copy full SHA for 9703599
2 files changed
crates/swc_ecma_lexer/src/common/parser/expr.rs
@@ -2301,8 +2301,6 @@ pub fn parse_primary_expr_rest<'a, P: Parser<'a>>(
2301
2302
if cur.is_class() {
2303
return parse_class_expr(p, start, decorators.unwrap_or_default());
2304
- } else if cur.is_eof() {
2305
- return Err(eof_error(p));
2306
}
2307
2308
let try_parse_arrow_expr = |p: &mut P, id: Ident, id_is_async| -> PResult<Box<Expr>> {
crates/swc_ecma_lexer/src/common/parser/stmt.rs
@@ -1260,8 +1260,6 @@ fn parse_stmt_internal<'a, P: Parser<'a>>(
1260
} else if cur.is_error() {
1261
let err = p.input_mut().expect_error_token_and_bump();
1262
return Err(err);
1263
1264
1265
1266
1267
// Handle async function foo() {}
0 commit comments