Skip to content

Commit

Permalink
#9985, but simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 27, 2023
1 parent 8a013c4 commit 07ff08f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,8 @@ export const javascript_visitors_runes = {

if (property.value.type === 'AssignmentPattern') {
id = property.value.left;
initial = property.value.right;
initial = /** @type {import('estree').Expression} */ (visit(property.value.right);
}
initial = initial
? /** @type {import('estree').Expression} */ (visit(initial))
: undefined;

assert.equal(id.type, 'Identifier');

Expand Down

0 comments on commit 07ff08f

Please sign in to comment.