]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: minor tweaks
authordaiwei <daiwei521@126.com>
Fri, 24 Jan 2025 02:38:23 +0000 (10:38 +0800)
committerdaiwei <daiwei521@126.com>
Fri, 24 Jan 2025 02:38:23 +0000 (10:38 +0800)
packages/compiler-core/src/transforms/vSlot.ts

index a58d6721d733efd55f3eaeb1be5786bc64c8e520..4ebb24ba05b029213ecf3bddc0aa7f4d53c248a5 100644 (file)
@@ -413,7 +413,7 @@ function hasForwardedSlots(children: TemplateChildNode[]): boolean {
         if (hasForwardedSlots(child.branches)) return true
         break
       case NodeTypes.SKIP:
-        const consequent = child.consequent
+        const { consequent } = child
         if (
           (consequent.type === NodeTypes.IF_BRANCH &&
             hasForwardedSlots(consequent.children)) ||