]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix compat props default test
authorEvan You <evan@vuejs.org>
Tue, 10 Dec 2024 00:11:36 +0000 (08:11 +0800)
committerEvan You <evan@vuejs.org>
Tue, 10 Dec 2024 00:11:36 +0000 (08:11 +0800)
packages/runtime-core/src/componentProps.ts

index fbc4ca5bf25a3c4437e67590bea181a55500f40f..bc9f537cf8051484cc924ce63723f48be27080c7 100644 (file)
@@ -201,7 +201,7 @@ export function initProps(
   isStateful: number, // result of bitwise flag comparison
   isSSR = false,
 ): void {
-  const props: Data = {}
+  const props: Data = (instance.props = {})
   const attrs: Data = createInternalObject()
 
   instance.propsDefaults = Object.create(null)