Skip to content

Commit ef49564

Browse files
committed
protect
1 parent 037af05 commit ef49564

File tree

1 file changed

+4
-1
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+4
-1
lines changed

packages/svelte/src/internal/client/dom/blocks/slot.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export function slot(anchor, $$props, name, slot_props, fallback_fn) {
1818

1919
if (slot_fn === undefined) {
2020
var possible_snippet = $$props[name];
21-
if (typeof possible_snippet === 'function' && (!DEV || validated_snippets.has(possible_snippet))) {
21+
if (
22+
typeof possible_snippet === 'function' &&
23+
(!DEV || validated_snippets.has(possible_snippet))
24+
) {
2225
slot_fn = possible_snippet;
2326
}
2427
}

0 commit comments

Comments
 (0)