]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: replace -1 to PatchFlags.HOISTED (#10146)
authorpengbo <57180744+PengBoUESTC@users.noreply.github.com>
Thu, 18 Jan 2024 02:48:27 +0000 (10:48 +0800)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 02:48:27 +0000 (10:48 +0800)
packages/runtime-core/src/vnode.ts

index 178ceec41bd1f28cec11a0da3d61f7544da869e2..daa9413d2ee704cbf5b954d25dc4310b6680a40c 100644 (file)
@@ -665,7 +665,7 @@ export function cloneVNode<T, U>(
     // fast paths only.
     patchFlag:
       extraProps && vnode.type !== Fragment
-        ? patchFlag === -1 // hoisted node
+        ? patchFlag === PatchFlags.HOISTED // hoisted node
           ? PatchFlags.FULL_PROPS
           : patchFlag | PatchFlags.FULL_PROPS
         : patchFlag,