]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler): exclude BAIL flag in annotations
authorEvan You <yyx990803@gmail.com>
Thu, 3 Oct 2019 19:17:45 +0000 (15:17 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 3 Oct 2019 19:17:45 +0000 (15:17 -0400)
packages/compiler-core/src/transforms/transformElement.ts

index 069c79345bb86f5aa2b294d5186a4f59ee32197b..ceb7fbf292488c4a0fe4893b65ebb47fe26c3658 100644 (file)
@@ -122,8 +122,9 @@ export const transformElement: NodeTransform = (node, context) => {
           }
           if (__DEV__) {
             const flagNames = Object.keys(PatchFlagNames)
-              .filter(n => patchFlag & Number(n))
-              .map(n => PatchFlagNames[n as any])
+              .map(Number)
+              .filter(n => n > 0 && patchFlag & n)
+              .map(n => PatchFlagNames[n])
               .join(`, `)
             args.push(patchFlag + ` /* ${flagNames} */`)
           } else {