fix(runtime-core): properties in methods should be writable and enumerable in DEV (#3301)

fix #3300
This commit is contained in:
HcySunYang 2021-02-25 22:04:28 +08:00 committed by GitHub
parent 4a965802e8
commit e3568bae27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -610,7 +610,8 @@ export function applyOptions(
Object.defineProperty(ctx, key, {
value: methodHandler.bind(publicThis),
configurable: true,
enumerable: false
enumerable: true,
writable: true
})
} else {
ctx[key] = methodHandler.bind(publicThis)