From 4549e65baea54bfd10116241a6a5eba91ec3f632 Mon Sep 17 00:00:00 2001 From: Richard Cooke Date: Sat, 27 Mar 2021 15:23:10 +0000 Subject: [PATCH] fix(runtime-core): remove dev-only props property from setup context for consistency (#3492) --- packages/runtime-core/src/component.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 1295b75936b..6e2c1d53d78 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) },