Skip to content

Commit

Permalink
#9985, but simpler (#10009)
Browse files Browse the repository at this point in the history
* #9985, but simpler

* oops

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
  • Loading branch information
Rich-Harris and Rich-Harris authored Dec 27, 2023
1 parent 2ad5e53 commit 69f2840
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

1 comment on commit 69f2840

@vercel
Copy link

@vercel vercel bot commented on 69f2840 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svelte-5-preview – ./sites/svelte-5-preview

svelte-5-preview-git-main-svelte.vercel.app
svelte-5-preview-svelte.vercel.app
svelte-octane.vercel.app
svelte-5-preview.vercel.app

Please sign in to comment.