Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Nov 29, 2023
1 parent a918807 commit aacb254
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/swc_estree_compat/src/babelify/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl Babelify for Expr {
Expr::TsAs(a) => ExprOutput::Expr(Box::alloc().init(Expression::TSAs(a.babelify(ctx)))),
Expr::TsInstantiation(..) => unimplemented!("Babel doesn't support this right now."),
Expr::PrivateName(p) => ExprOutput::Private(p.babelify(ctx)),
Expr::ContentTagExpression(p) => p.babelify(ctx)),

// TODO(dwoznicki): how does babel handle these?
Expr::JSXMember(_) => panic!(
Expand Down Expand Up @@ -169,10 +170,6 @@ impl Babelify for Expr {
"illegal conversion: Cannot convert {:?} to ExprOutput - babel has no equivalent",
&self
),
Expr::ContentTagExpression(_) => panic!(
"illegal conversion: Cannot convert {:?} to ExprOutput - babel has no equivalent",
&self
),
}
}
}
Expand Down

0 comments on commit aacb254

Please sign in to comment.