From: Richard Cooke Date: Sat, 27 Mar 2021 15:23:10 +0000 (+0000) Subject: fix(runtime-core): remove dev-only props property from setup context for consistency... X-Git-Tag: v3.0.9~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4549e65baea54bfd10116241a6a5eba91ec3f632;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): remove dev-only props property from setup context for consistency (#3492) --- diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 1295b75936..6e2c1d53d7 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -780,9 +780,6 @@ export function createSetupContext( // We use getters in dev in case libs like test-utils overwrite instance // properties (overwrites should not be done in prod) return Object.freeze({ - get props() { - return instance.props - }, get attrs() { return new Proxy(instance.attrs, attrHandlers) },