diff --git a/crates/oxc_transformer/src/es2021/logical_assignment_operators.rs b/crates/oxc_transformer/src/es2021/logical_assignment_operators.rs index 12435a471cf34..c5a28c4ea451b 100644 --- a/crates/oxc_transformer/src/es2021/logical_assignment_operators.rs +++ b/crates/oxc_transformer/src/es2021/logical_assignment_operators.rs @@ -296,7 +296,7 @@ impl<'a, 'ctx> LogicalAssignmentOperators<'a, 'ctx> { match expr { Expression::Identifier(ident) => { let binding = MaybeBoundIdentifier::from_identifier_reference(ident, ctx); - binding.create_spanned_expression(ident.span, ReferenceFlags::Read, ctx) + binding.create_spanned_read_expression(ident.span, ctx) } _ => expr.clone_in(ctx.ast.allocator), }