Skip to content

Commit 0f25dcb

Browse files
committed
tweak
1 parent eb93b47 commit 0f25dcb

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function get_delegated_event(event_name, handler, context) {
9494
if (binding != null) {
9595
for (const { path } of binding.references) {
9696
const parent = path.at(-1);
97-
if (parent == null) return unhoisted;
97+
if (parent === undefined) return unhoisted;
9898

9999
const grandparent = path.at(-2);
100100

0 commit comments

Comments
 (0)