Skip to content

Commit 69f2840

Browse files
authored
#9985, but simpler (#10009)
* #9985, but simpler * oops --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 2ad5e53 commit 69f2840

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,8 @@ export const javascript_visitors_runes = {
193193

194194
if (property.value.type === 'AssignmentPattern') {
195195
id = property.value.left;
196-
initial = property.value.right;
196+
initial = /** @type {import('estree').Expression} */ (visit(property.value.right));
197197
}
198-
initial = initial
199-
? /** @type {import('estree').Expression} */ (visit(initial))
200-
: undefined;
201198

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

0 commit comments

Comments
 (0)