Skip to content

Commit

Permalink
fix(transformer/class-properties): no raw for generated `StringLite…
Browse files Browse the repository at this point in the history
…ral` (#7825)

Follow-on after #7815. Generated `StringLiteral`s should have `raw: None`.
  • Loading branch information
overlookmotel committed Dec 13, 2024
1 parent e727ae9 commit 65b109a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/oxc_transformer/src/es2022/class_properties/supers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 65b109a

Please sign in to comment.