]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: cache isStaticNode result for missing branch
authorEvan You <yyx990803@gmail.com>
Sun, 20 Oct 2019 21:01:01 +0000 (17:01 -0400)
committerEvan You <yyx990803@gmail.com>
Sun, 20 Oct 2019 21:01:01 +0000 (17:01 -0400)
packages/compiler-core/src/transforms/hoistStatic.ts

index 9275aceb395b20ee929518098a76810e668b0ef6..18646c51054c77474c7b6ff05e5a617158565ba8 100644 (file)
@@ -112,6 +112,7 @@ export function isStaticNode(
         resultCache.set(node, true)
         return true
       } else {
+        resultCache.set(node, false)
         return false
       }
     case NodeTypes.TEXT: