Skip to content

Commit 0f61572

Browse files
committed
fix(genInlineTemplate): appear error when children is empty(#9361)
1 parent 47c0b7e commit 0f61572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/modules/compiler/codegen.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ describe('codegen', () => {
587587
try {
588588
assertCodegen(
589589
'<my-component inline-template></my-component>',
590-
''
590+
`with(this){return _c('my-component',{})}`
591591
)
592592
} catch (e) {}
593593
expect('Inline-template components must have exactly one child element.').toHaveBeenWarned()

0 commit comments

Comments
 (0)