Skip to content

Commit 037af05

Browse files
committed
protect
1 parent 3217ab0 commit 037af05

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export function slot(anchor, $$props, name, slot_props, fallback_fn) {
1717
var slot_fn = $$props.$$slots?.[name];
1818

1919
if (slot_fn === undefined) {
20-
var possible_slot = $$props[name];
21-
if (typeof possible_slot === 'function' && (!DEV || validated_snippets.has(possible_slot))) {
22-
slot_fn = possible_slot;
20+
var possible_snippet = $$props[name];
21+
if (typeof possible_snippet === 'function' && (!DEV || validated_snippets.has(possible_snippet))) {
22+
slot_fn = possible_snippet;
2323
}
2424
}
2525

0 commit comments

Comments
 (0)