diff --git a/packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js b/packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js index dbb05bc5ef..a4aa13ad67 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js +++ b/packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js @@ -158,13 +158,11 @@ export function BindDirective(node, context) { return; } - // Handle spread syntax for bind directives: bind:value={...bindings} if (node.expression.type === 'SpreadElement') { if (node.name === 'group') { e.bind_group_invalid_expression(node); } - // Validate that the spread is applied to a valid expression that returns an array const argument = node.expression.argument; if ( argument.type !== 'Identifier' &&