Skip to content

Commit

Permalink
Use original type
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Feb 3, 2024
1 parent c1e6308 commit 62a50f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language-js/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ function clean(original, cloned, parent) {
) {
// Ideally, we should swap these two nodes, but `type` is the only difference
[cloned.type, cloned.expression.type] = [
cloned.expression.type,
cloned.type,
original.expression.type,
original.type,
];
}
}
Expand Down

0 comments on commit 62a50f9

Please sign in to comment.