diff --git a/crates/oxc_transformer/src/es2022/class_properties/private.rs b/crates/oxc_transformer/src/es2022/class_properties/private.rs index 3000fc487e967c..bc938e64c5b175 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/private.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/private.rs @@ -872,7 +872,7 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> { false, )); let arguments = ctx.ast.vec1(Argument::from(object)); - Some(ctx.ast.expression_call(SPAN, callee, NONE, arguments, false)) + Some(ctx.ast.expression_call(field_expr.span, callee, NONE, arguments, false)) } /// Transform private field in assignment pattern.