]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: comments
authorEvan You <yyx990803@gmail.com>
Wed, 23 Jun 2021 14:21:33 +0000 (10:21 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 23 Jun 2021 14:21:33 +0000 (10:21 -0400)
packages/compiler-sfc/src/compileScript.ts

index 19a6bb6189d98174401f814a56cc439b8251d867..f802bdffdd818b13f1e1329a4859eb6deff10001 100644 (file)
@@ -947,6 +947,8 @@ export function compileScript(
       }
     }
     returned = `{ ${Object.keys(allBindings).join(', ')}${
+      // the `__isScriptSetup: true` flag is used by componentPublicInstance
+      // proxy to allow properties that start with $ or _
       __TEST__ ? `` : `, __isScriptSetup: true`
     } }`
   }