diff --git a/crates/oxc_minifier/src/peephole/replace_known_methods.rs b/crates/oxc_minifier/src/peephole/replace_known_methods.rs index 88fd95ce39d53..6f895580eeed9 100644 --- a/crates/oxc_minifier/src/peephole/replace_known_methods.rs +++ b/crates/oxc_minifier/src/peephole/replace_known_methods.rs @@ -392,7 +392,8 @@ impl<'a> PeepholeOptimizations { Some(ctx.ast.expression_binary( span, - wrap_with_unary_plus_if_needed(first_arg), + // see [`PeepholeOptimizations::is_binary_operator_that_does_number_conversion`] why it does not require `wrap_with_unary_plus_if_needed` here + ctx.ast.move_expression(first_arg), BinaryOperator::Exponential, wrap_with_unary_plus_if_needed(second_arg), ))