Skip to content

Commit 4586de9

Browse files
committed
chore: add comment
1 parent f8c83c8 commit 4586de9

File tree

1 file changed

+1
-0
lines changed
  • packages/svelte/src/compiler/phases/2-analyze/visitors

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ function get_delegated_event(event_name, handler, context) {
184184
const binding = scope.get(reference);
185185
const local_binding = context.state.scope.get(reference);
186186

187+
// if the function access a snippet that can't be hoisted we bail out
187188
if (
188189
local_binding !== null &&
189190
local_binding.initial?.type === 'SnippetBlock' &&

0 commit comments

Comments
 (0)