From 805ca34a965a946af065e066df0e308c1c90d9b7 Mon Sep 17 00:00:00 2001 From: Jack Goodall Date: Tue, 29 Jul 2025 17:13:03 +0200 Subject: [PATCH] component props --- .../src/compiler/phases/2-analyze/visitors/BindDirective.js | 2 -- 1 file changed, 2 deletions(-) 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' &&