diff --git a/packages/commons/src/hooks.ts b/packages/commons/src/hooks.ts index f8d3882db2..9852c01422 100644 --- a/packages/commons/src/hooks.ts +++ b/packages/commons/src/hooks.ts @@ -154,7 +154,9 @@ export function enableHooks (obj: any, methods: string[], types: string[]) { // Add non-enumerable `__hooks` property to the object Object.defineProperty(obj, '__hooks', { - value: hookData + configurable: true, + value: hookData, + writable: true }); return Object.assign(obj, {