Skip to content

Commit

Permalink
fix(language-core): ForIteratorExpression's returns property may …
Browse files Browse the repository at this point in the history
…be undefined (vuejs#4418)
  • Loading branch information
so1ve committed May 24, 2024
1 parent ff2788d commit b6936dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/language-core/lib/codegen/template/vFor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export function* generateVFor(
for (const argument of node.codegenNode?.children.arguments ?? []) {
if (
argument.type === CompilerDOM.NodeTypes.JS_FUNCTION_EXPRESSION
&& argument.returns.type === CompilerDOM.NodeTypes.VNODE_CALL
&& argument.returns.props?.type === CompilerDOM.NodeTypes.JS_OBJECT_EXPRESSION
&& argument.returns?.type === CompilerDOM.NodeTypes.VNODE_CALL
&& argument.returns?.props?.type === CompilerDOM.NodeTypes.JS_OBJECT_EXPRESSION
) {
if (argument.returns.tag !== CompilerDOM.FRAGMENT) {
isFragment = false;
Expand Down

0 comments on commit b6936dc

Please sign in to comment.