Skip to content

Commit 1564640

Browse files
committed
disallow anything but attributes on the boundary element
1 parent 3afd1bb commit 1564640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as e from '../../../errors.js';
88
*/
99
export function SvelteBoundary(node, context) {
1010
for (const attribute of node.attributes) {
11-
if (attribute.type === 'SpreadAttribute') {
11+
if (attribute.type !== 'Attribute') {
1212
e.illegal_element_attribute(attribute, 'svelte:boundary');
1313
}
1414
}

0 commit comments

Comments
 (0)