From ef916614f1b714bc765721fd7a35a4a471ac6811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 5 Feb 2024 20:05:51 +0900 Subject: [PATCH] fix(es/quote): Support `AssignTarget`, really (#8603) --- crates/swc_ecma_quote_macros/src/ctxt.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/swc_ecma_quote_macros/src/ctxt.rs b/crates/swc_ecma_quote_macros/src/ctxt.rs index 45e1f6d5c46f..3a4cd7bccf8d 100644 --- a/crates/swc_ecma_quote_macros/src/ctxt.rs +++ b/crates/swc_ecma_quote_macros/src/ctxt.rs @@ -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,