Skip to content

Commit ef91661

Browse files
authoredFeb 5, 2024
fix(es/quote): Support AssignTarget, really (#8603)
1 parent 4f139d4 commit ef91661

File tree

1 file changed

+2
-1
lines changed
  • crates/swc_ecma_quote_macros/src

1 file changed

+2
-1
lines changed
 

‎crates/swc_ecma_quote_macros/src/ctxt.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ pub(super) fn prepare_vars(
106106
"Expr" => VarPos::Expr,
107107
"Pat" => VarPos::Pat,
108108
"Str" => VarPos::Str,
109-
_ => panic!("Invalid type: {}", segment.ident),
109+
"AssignTarget" => VarPos::AssignTarget,
110+
_ => panic!("Invalid type: {:?}", segment.ident),
110111
}
111112
}
112113
None => VarPos::Ident,

0 commit comments

Comments
 (0)
Please sign in to comment.