From 65b109a582c64c42075808344ea216b795f481ad Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Fri, 13 Dec 2024 02:33:38 +0000 Subject: [PATCH] fix(transformer/class-properties): no `raw` for generated `StringLiteral` (#7825) Follow-on after #7815. Generated `StringLiteral`s should have `raw: None`. --- .../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 e71ca31023ee8..ed357ffa453ef 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) }