Skip to content

Commit 805ca34

Browse files
committed
component props
1 parent 484885d commit 805ca34

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,11 @@ export function BindDirective(node, context) {
158158
return;
159159
}
160160

161-
// Handle spread syntax for bind directives: bind:value={...bindings}
162161
if (node.expression.type === 'SpreadElement') {
163162
if (node.name === 'group') {
164163
e.bind_group_invalid_expression(node);
165164
}
166165

167-
// Validate that the spread is applied to a valid expression that returns an array
168166
const argument = node.expression.argument;
169167
if (
170168
argument.type !== 'Identifier' &&

0 commit comments

Comments
 (0)