chore(compiler-core): fix typo in hoistStatic (#4625) [ci skip]
This commit is contained in:
parent
b264551c9b
commit
56be30b5c7
@ -59,7 +59,7 @@ function walk(
|
|||||||
// This is only a concern for pre-stringification (via transformHoist by
|
// 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
|
// @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
|
// 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
|
let canStringify = true
|
||||||
|
|
||||||
const { children } = node
|
const { children } = node
|
||||||
@ -341,7 +341,7 @@ function getGeneratedPropsConstantType(
|
|||||||
} else if (value.type === NodeTypes.JS_CALL_EXPRESSION) {
|
} else if (value.type === NodeTypes.JS_CALL_EXPRESSION) {
|
||||||
// some helper calls can be hoisted,
|
// some helper calls can be hoisted,
|
||||||
// such as the `normalizeProps` generated by the compiler for pre-normalize class,
|
// 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)
|
valueType = getConstantTypeOfHelperCall(value, context)
|
||||||
} else {
|
} else {
|
||||||
valueType = ConstantTypes.NOT_CONSTANT
|
valueType = ConstantTypes.NOT_CONSTANT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user