We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f8db95 + c84b9a3 commit 62993dbCopy full SHA for 62993db
src/helpers/isReadOnlyProperty.ts
@@ -6,5 +6,5 @@ export function isReadOnlyProperty(
6
const prototype = Object.getPrototypeOf(objectInstance);
7
const propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, propertyKey);
8
9
- return !(typeof propertyDescriptor === 'undefined' || propertyDescriptor.set);
+ return !(typeof propertyDescriptor === 'undefined' || propertyDescriptor.writable || propertyDescriptor.set);
10
}
0 commit comments