]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(compiler-core): fix typo in hoistStatic (#4625) [ci skip]
authorZiwen Mei <67939848+Rudeus3Greyrat@users.noreply.github.com>
Tue, 21 Sep 2021 17:06:39 +0000 (01:06 +0800)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 17:06:39 +0000 (13:06 -0400)
packages/compiler-core/src/transforms/hoistStatic.ts

index 27cc017a93adf383a3fdf92f05ced79aa621a02b..920ba8d4a4bd03ecfb086493b2ad5626d800d1e0 100644 (file)
@@ -59,7 +59,7 @@ function walk(
   // This is only a concern for pre-stringification (via transformHoist by
   // @vue/compiler-dom), but doing it here allows us to perform only one full
   // walk of the AST and allow `stringifyStatic` to stop walking as soon as its
-  // stringficiation threshold is met.
+  // stringification threshold is met.
   let canStringify = true
 
   const { children } = node
@@ -341,7 +341,7 @@ function getGeneratedPropsConstantType(
       } else if (value.type === NodeTypes.JS_CALL_EXPRESSION) {
         // some helper calls can be hoisted,
         // such as the `normalizeProps` generated by the compiler for pre-normalize class,
-        // in this case we need to respect the ConstanType of the helper's argments
+        // in this case we need to respect the ConstantType of the helper's argments
         valueType = getConstantTypeOfHelperCall(value, context)
       } else {
         valueType = ConstantTypes.NOT_CONSTANT