Skip to content

Commit

Permalink
Fix span
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 27, 2024
1 parent 44eb342 commit ee4f70e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ee4f70e

Please sign in to comment.