We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a013c4 commit 07ff08fCopy full SHA for 07ff08f
packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js
@@ -193,11 +193,8 @@ export const javascript_visitors_runes = {
193
194
if (property.value.type === 'AssignmentPattern') {
195
id = property.value.left;
196
- initial = property.value.right;
+ initial = /** @type {import('estree').Expression} */ (visit(property.value.right);
197
}
198
- initial = initial
199
- ? /** @type {import('estree').Expression} */ (visit(initial))
200
- : undefined;
201
202
assert.equal(id.type, 'Identifier');
203
0 commit comments