fix(runtime-core): add dev warning for silent catch in compat mode and fix test description typo#14891
Conversation
📝 WalkthroughWalkthroughTest description in the Vue package is corrected; separately, compat defineReactive now reports exceptions from nested-property reactivity by calling warn with the property key and caught error in development builds. ChangesTest Description Correction
Compat defineReactive error reporting
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
- compat/global.ts: add __DEV__ warning when defineReactiveSimple fails (previously silently swallowed all errors) - vue/__tests__/index.spec.ts: "is is" → "is" in test description
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
|
/ecosystem-ci run |
|
📝 Ran ecosystem CI: Open
|
Summary
Bug fix: silent error swallowing in compat mode
packages/runtime-core/src/compat/global.ts:634— emptycatch (e: any) {}silently swallowed all errors fromdefineReactiveSimple__DEV__warning to match existing pattern inprops.ts:100-108Typo fix
packages/vue/__tests__/index.spec.ts:193— "template is is not found" → "template is not found"Summary by CodeRabbit
Tests
Bug Fixes (development)