fix(compiler-core): handle semicolons in v-on expressions#14312
fix(compiler-core): handle semicolons in v-on expressions#14312seekskyworld wants to merge 2 commits intovuejs:mainfrom
Conversation
📝 WalkthroughWalkthroughAdds expression validation utilities and uses them in v-on handler parsing to distinguish single valid expressions from multiple statements; also adds a test covering semicolons inside a function expression in a v-on expression. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)packages/compiler-core/src/utils.ts (3)
🔇 Additional comments (3)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Added JSDoc for the new isValidExpression helpers to satisfy the docstring coverage check. |
Issue: #14287
Summary:
Motivation:
Validation:
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.