diff --git a/src/helpers/isReadOnlyProperty.ts b/src/helpers/isReadOnlyProperty.ts index 3da59563..a2fcbf39 100644 --- a/src/helpers/isReadOnlyProperty.ts +++ b/src/helpers/isReadOnlyProperty.ts @@ -6,5 +6,5 @@ export function isReadOnlyProperty( const prototype = Object.getPrototypeOf(objectInstance); const propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, propertyKey); - return !(typeof propertyDescriptor === 'undefined' || propertyDescriptor.set); + return !(typeof propertyDescriptor === 'undefined' || propertyDescriptor.writable || propertyDescriptor.set); }