fix(runtime-core): remove dev-only props property from setup context for consistency (#3492)

This commit is contained in:
Richard Cooke 2021-03-27 15:23:10 +00:00 committed by GitHub
parent e752bddb33
commit 4549e65bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
},