From b185c2c45ea505552f826a1ae10b3966c06d8157 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Fri, 13 Dec 2024 01:58:17 +0000 Subject: [PATCH] fix(transformer/class-properties): no `raw` for generated `StringLiteral` --- .../oxc_transformer/src/es2022/class_properties/supers.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/oxc_transformer/src/es2022/class_properties/supers.rs b/crates/oxc_transformer/src/es2022/class_properties/supers.rs index e71ca31023ee8e..ed357ffa453efd 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/supers.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/supers.rs @@ -32,11 +32,8 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> { ctx: &mut TraverseCtx<'a>, ) -> Expression<'a> { let property = &member.property; - let property = ctx.ast.expression_string_literal( - property.span, - property.name.clone(), - Some(property.name.clone()), - ); + let property = + ctx.ast.expression_string_literal(property.span, property.name.clone(), None); self.create_super_prop_get(member.span, property, ctx) }