Skip to content

Commit

Permalink
fix(runtime-core): properties in methods should be writable and enume…
Browse files Browse the repository at this point in the history
…rable in DEV (#3301)

fix #3300
  • Loading branch information
HcySunYang authored Feb 25, 2021
1 parent 4a96580 commit e3568ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-core/src/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3568ba

Please sign in to comment.