From: Evan You Date: Tue, 10 Dec 2024 00:11:36 +0000 (+0800) Subject: chore: fix compat props default test X-Git-Tag: v3.6.0-alpha.1~16^2~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2ff3bd564e99f644aee36fb70f086ca2396a28f;p=thirdparty%2Fvuejs%2Fcore.git chore: fix compat props default test --- diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index fbc4ca5bf2..bc9f537cf8 100644 --- a/packages/runtime-core/src/componentProps.ts +++ b/packages/runtime-core/src/componentProps.ts @@ -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)