Skip to content

Commit

Permalink
fix(es/quote): Support AssignTarget, really (#8603)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 5, 2024
1 parent 4f139d4 commit ef91661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/swc_ecma_quote_macros/src/ctxt.rs
Expand Up @@ -106,7 +106,8 @@ pub(super) fn prepare_vars(
"Expr" => VarPos::Expr,
"Pat" => VarPos::Pat,
"Str" => VarPos::Str,
_ => panic!("Invalid type: {}", segment.ident),
"AssignTarget" => VarPos::AssignTarget,
_ => panic!("Invalid type: {:?}", segment.ident),
}
}
None => VarPos::Ident,
Expand Down

0 comments on commit ef91661

Please sign in to comment.