-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Open
Labels
Description
Vue version
3.5
Link to minimal reproduction
Steps to reproduce
- In the Home.vue file, uncomment the following line:
<!-- <test-comp :modelValue="{ type: 'js' }" /> -->
- application auto rerendered
- An error is thrown:
Right-hand side of 'instanceof' is not an object - The
onErrorCapturedhook registered in the parent component does not capture this error
- 在 Home.vue 文件中,取消注释以下代码:
<!-- <test-comp :modelValue="{ type: 'js' }" /> -->
- 应用自动重新渲染
实际行为:
抛出错误:Right-hand side of 'instanceof' is not an object
父组件中注册的 onErrorCaptured 钩子未能捕获此错误
What is expected?
Expected Behavior:
The onErrorCaptured hook should successfully capture and handle the error thrown by the child component.
预期行为:
onErrorCaptured 钩子应该能够成功捕获并处理子组件抛出的错误。
What is actually happening?
- An error is thrown:
Right-hand side of 'instanceof' is not an object - The
onErrorCapturedhook registered in the parent component does not capture this error
System Info
Any additional comments?
No response