mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(transformer/class-properties): no raw for generated StringLiteral (#7825)
Follow-on after #7815. Generated `StringLiteral`s should have `raw: None`.
This commit is contained in:
parent
e727ae9698
commit
65b109a582
1 changed files with 2 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue