diff --git a/crates/oxc_transformer/src/es2022/class_properties.rs b/crates/oxc_transformer/src/es2022/class_properties.rs index 3523cd3b21ab52..072be6d2899b01 100644 --- a/crates/oxc_transformer/src/es2022/class_properties.rs +++ b/crates/oxc_transformer/src/es2022/class_properties.rs @@ -2167,7 +2167,7 @@ impl<'a, 'c> ConstructorInitsInserter<'a, 'c> { stmts: &mut ArenaVec<'a, Statement<'a>>, inits: Vec>, ) { - let ctx = &mut self.ctx; + let ctx = &mut *self.ctx; let super_func_scope = ctx.scopes_mut().add_scope( Some(self.constructor_scope_id), @@ -2268,6 +2268,6 @@ impl<'a, 'c> ConstructorInitsInserter<'a, 'c> { SymbolFlags::FunctionScopedVariable, ) }); - call_expr.callee = super_binding.create_spanned_read_expression(span, &mut self.ctx); + call_expr.callee = super_binding.create_spanned_read_expression(span, self.ctx); } }