Open
Description
Vue version
3.5.12
Link to minimal reproduction
Steps to reproduce
Have code like this: const { foo, bar = foo } = defineProps<{ foo: string, bar?: string }>()
What is expected?
No error.
What is actually happening?
Error foo is not defined
System Info
n/a
Any additional comments?
const { a, b = a } = { a: 1, b: undefined }
is valid syntax in regular js and as such should be supported in vue also.