Skip to content

Commit

Permalink
fix expr simplifieir
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 28, 2024
1 parent d2f6b89 commit 29dff06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ fn get_key_value(key: &str, props: &mut Vec<PropOrSpread>) -> Option<Box<Expr>>
return None;
}

for (i, prop) in props.iter_mut().enumerate() {
for (i, prop) in props.iter_mut().enumerate().rev() {
let prop = match prop {
PropOrSpread::Prop(x) => &mut **x,
PropOrSpread::Spread(_) => unreachable!(),
Expand Down

0 comments on commit 29dff06

Please sign in to comment.