Skip to content

Commit e3568ba

Browse files
authored
fix(runtime-core): properties in methods should be writable and enumerable in DEV (#3301)
fix #3300
1 parent 4a96580 commit e3568ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-core/src/componentOptions.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ export function applyOptions(
610610
Object.defineProperty(ctx, key, {
611611
value: methodHandler.bind(publicThis),
612612
configurable: true,
613-
enumerable: false
613+
enumerable: true,
614+
writable: true
614615
})
615616
} else {
616617
ctx[key] = methodHandler.bind(publicThis)

0 commit comments

Comments
 (0)